3
0
Fork 0
forked from mirrors/nixpkgs

github-runner: use fake HOME in dependency fetcher

This commit is contained in:
David McFarland 2022-10-09 18:55:56 -03:00
parent 4c861dd26c
commit 858da95dc0

View file

@ -333,6 +333,7 @@ stdenv.mkDerivation rec {
printf "\n* Setup workdir\n"
workdir="$(mktemp -d /tmp/${pname}.XXX)"
HOME="$workdir"/.fake-home
cp -rT "${src}" "$workdir"
chmod -R +w "$workdir"
trap 'rm -rf "$workdir"' EXIT