mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
buildDotnetModule: unset TMPDIR instead of setting it empty
This was breaking nix-prefetch-url when running fetch-deps in nix-shell. e.g. $ TMPDIR= nix-prefetch-url foo nix-prefetch-url: src/libutil/util.cc:119: nix::Path nix::canonPath(PathView, bool): Assertion `path != ""' failed. [2] 881198 abort (core dumped)
This commit is contained in:
parent
ee8ba995a7
commit
cf9976de74
@ -214,7 +214,7 @@ stdenvNoCC.mkDerivation (args // {
|
||||
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=
|
||||
unset TMPDIR
|
||||
fi
|
||||
|
||||
export tmp=$(mktemp -td "deps-${pname}-XXXXXX")
|
||||
|
Loading…
Reference in New Issue
Block a user