Merge pull request #209357 from erikarvstedt/fix-dotnet-fetch-deps-tmpdir

build-dotnet-module: avoid `/run/user` for downloading packages
This commit is contained in:
Pavol Rusnak 2023-01-09 16:12:38 +00:00 committed by GitHub
commit 9ede79d58b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,13 @@ stdenvNoCC.mkDerivation (args // {
esac
done
export tmp=$(mktemp -td "${pname}-tmp-XXXXXX")
if [[ ''${TMPDIR:-} == /run/user/* ]]; then
# /run/user is usually a tmpfs in RAM, which may be too small
# to store all downloaded dotnet packages
TMPDIR=
fi
export tmp=$(mktemp -d "deps-${pname}-XXXXXX")
HOME=$tmp/home
exitTrap() {