Skip to content

Commit

Permalink
referencesByPopularity: Don't use buildPackages at call-site
Browse files Browse the repository at this point in the history
It's cleaner to reference buildPackages directly in
build-support/docker directly.
  • Loading branch information
adisbladis committed Nov 24, 2020
1 parent bd4c7fd commit 6847a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkgs/build-support/docker/default.nix
Expand Up @@ -15,7 +15,6 @@
moreutils,
nix,
pigz,
referencesByPopularity,
rsync,
runCommand,
runtimeShell,
Expand Down Expand Up @@ -772,7 +771,7 @@ rec {
then tag
else
lib.head (lib.strings.splitString "-" (baseNameOf conf.outPath));
paths = referencesByPopularity overallClosure;
paths = buildPackages.referencesByPopularity overallClosure;
nativeBuildInputs = [ jq ];
} ''
${if (tag == null) then ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -511,7 +511,7 @@ in

nukeReferences = callPackage ../build-support/nuke-references { };

referencesByPopularity = buildPackages.callPackage ../build-support/references-by-popularity { };
referencesByPopularity = callPackage ../build-support/references-by-popularity { };

removeReferencesTo = callPackage ../build-support/remove-references-to { };

Expand Down

0 comments on commit 6847a5c

Please sign in to comment.