Commit d09cd1d7 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by Bjørn Forsman
Browse files

fetchgit: use $NIX_BUILD_TOP instead of hardcoding /build/

parent e33a864e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ fi
tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")"
exit_handlers+=(remove_tmpHomePath)
HOME="$tmpHomePath"
ln -s /build/.netrc "$HOME/"
ln -s "$NIX_BUILD_TOP/.netrc" "$HOME/"
unset XDG_CONFIG_HOME
export GIT_CONFIG_NOSYSTEM=1