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
@ -190,7 +190,13 @@ stdenvNoCC.mkDerivation (args // {
|
|||||||
esac
|
esac
|
||||||
done
|
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
|
HOME=$tmp/home
|
||||||
|
|
||||||
exitTrap() {
|
exitTrap() {
|
||||||
|
Loading…
Reference in New Issue
Block a user