From 29c15f3f707085456b06ff88ded2bdf8def609d4 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 28 Feb 2026 13:28:08 +1100 Subject: [PATCH] nix nit: reset TMPDIR/TMP in shell4-osx for long-running emacs --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 ''; };