Merge pull request #13564 from valeriangalliat/nix-prefetch-scripts/explicit-nix-dependency

nix-prefetch-scripts: explicitly depend on Nix
This commit is contained in:
Arseniy Seroka 2016-03-03 23:39:50 +03:00
commit a40322613e

View File

@ -1,5 +1,5 @@
{ stdenv, makeWrapper, buildEnv,
git, subversion, mercurial, bazaar, cvs, unzip, curl, gnused, coreutils
git, subversion, mercurial, bazaar, cvs, unzip, curl, gnused, coreutils, nix
}:
let mkPrefetchScript = tool: src: deps:
@ -18,6 +18,7 @@ let mkPrefetchScript = tool: src: deps:
wrapArgs="$wrapArgs --prefix PATH : $dep/bin"
done
wrapArgs="$wrapArgs --prefix PATH : ${gnused}/bin"
wrapArgs="$wrapArgs --prefix PATH : ${nix}/bin" # For nix-hash
wrapArgs="$wrapArgs --set HOME : /homeless-shelter"
wrapProgram $out/bin/$name $wrapArgs
'';