diff --git a/pkgs/build-support/closure-info.nix b/pkgs/build-support/closure-info.nix index 58d70b4b0631..28f2802a5bce 100644 --- a/pkgs/build-support/closure-info.nix +++ b/pkgs/build-support/closure-info.nix @@ -4,7 +4,7 @@ # "nix-store --load-db" and "nix-store --register-validity # --hash-given". -{ stdenv, coreutils, jq }: +{ stdenv, coreutils, jq, buildPackages }: { rootPaths }: @@ -17,7 +17,7 @@ stdenv.mkDerivation { exportReferencesGraph.closure = rootPaths; - PATH = "${coreutils}/bin:${jq}/bin"; + PATH = "${buildPackages.coreutils}/bin:${buildPackages.jq}/bin"; builder = builtins.toFile "builder" ''