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:
commit
9ede79d58b
1 changed files with 7 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue