Skip to content

Commit

Permalink
fetchgit: use $NIX_BUILD_TOP instead of hardcoding /build/
Browse files Browse the repository at this point in the history
Co-authored-by: Bjørn Forsman <[email protected]>
  • Loading branch information
SuperSandro2000 and bjornfor committed Oct 7, 2023
1 parent e33a864 commit d09cd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d09cd1d

Please sign in to comment.