diff --git a/default.nix b/default.nix index 77c8f1e1..59a80c66 100644 --- a/default.nix +++ b/default.nix @@ -783,6 +783,10 @@ in # dependencies on host system libraries # glpath = pkgs.lib.makeLibraryPath [ ]; + + # choose a temp directory that can outlive nix-shell + export TMPDIR=$(getconf DARWIN_USER_TEMP_DIR) + export TMP=$TMPDIR ''; };