nix-prefetch-git: fix incorrect mktemp usage

authored by Tomas Bravo and committed by Bjørn Forsman 80ab168c 5c339b88

+1 -1
+1 -1
pkgs/build-support/fetchgit/nix-prefetch-git
··· 304 304 local rev="${3:-HEAD}" 305 305 306 306 if [ -n "$fetchLFS" ]; then 307 - tmpHomePath="$(mktemp -d -p nix-prefetch-git-tmp-home-XXXXXXXXXX)" 307 + tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")" 308 308 exit_handlers+=(remove_tmpHomePath) 309 309 HOME="$tmpHomePath" 310 310 git lfs install