diff options
author | David McFarland <corngood@gmail.com> | 2023-06-23 15:08:57 -0300 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2023-06-24 19:13:16 -0300 |
commit | cf9976de74326b753af0d5bfca0729b23c2d5fd1 (patch) | |
tree | 7b6d41fb03999b28d0a7a37eb4eb473b4363387d /pkgs/build-support | |
parent | ee8ba995a746b317d94abcbaeb877f200e1cd37b (diff) |
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)
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 0e9cd21a3b357..16e27188671f9 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -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") |