github-runner: Avoid /homeless-shelter bug (#170892)

This commit fix "homeless-shelter" bug that you sometimes get on local
builds:

"Failed to read NuGet.Config due to unauthorized access. Path:
'/homeless-shelter/.config/NuGet/NuGet.Config"

Sets HOME envrioment varibale in derivation to /tmp.
This commit is contained in:
kfollesdal 2022-05-02 16:18:31 +02:00 committed by GitHub
parent b569c6ef73
commit 4b348d6a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,8 @@ stdenv.mkDerivation rec {
configurePhase = ''
runHook preConfigure
export HOME=$(mktemp -d)
# Never use nuget.org
nuget sources Disable -Name "nuget.org"