prefetch-scripts: improve purity

Set HOME to /homeless-shelter to prevent things like git hooks from
running

Closes #5777
This commit is contained in:
Charles Strahan 2015-01-14 21:24:06 -05:00
parent 0351b7a710
commit 54f3b50131

View File

@ -17,6 +17,7 @@ stdenv.mkDerivation {
wrapArgs="$wrapArgs --prefix PATH : $dep/bin"
done
wrapArgs="$wrapArgs --prefix PATH : ${gnused}/bin"
wrapArgs="$wrapArgs --set HOME : /homeless-shelter"
wrapProgram $out/bin/$name $wrapArgs
}