fetchgit: use $NIX_BUILD_TOP instead of hardcoding /build/

Co-authored-by: Bjørn Forsman <133602+bjornfor@users.noreply.github.com>

authored by

Sandro Jäckel
Bjørn Forsman
and committed by
Bjørn Forsman
d09cd1d7 e33a864e

+1 -1
+1 -1
pkgs/build-support/fetchgit/nix-prefetch-git
··· 417 417 tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")" 418 418 exit_handlers+=(remove_tmpHomePath) 419 419 HOME="$tmpHomePath" 420 - ln -s /build/.netrc "$HOME/" 420 + ln -s "$NIX_BUILD_TOP/.netrc" "$HOME/" 421 421 unset XDG_CONFIG_HOME 422 422 export GIT_CONFIG_NOSYSTEM=1 423 423