From f36f1db315b817d05e875ba9c73012a8c49f4a0e Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sun, 12 Feb 2023 10:51:45 +1300 Subject: [PATCH] Allow SCONS_CACHE env var in pure nix environment --- addons/godot_xterm/native/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/godot_xterm/native/build.sh b/addons/godot_xterm/native/build.sh index b461a7d..123b2c8 100755 --- a/addons/godot_xterm/native/build.sh +++ b/addons/godot_xterm/native/build.sh @@ -38,7 +38,7 @@ NATIVE_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" # Run script inside a nix shell if it is available. if command -v nix-shell && [ $NIX_PATH ] && [ -z $IN_NIX_SHELL ]; then cd ${NATIVE_DIR} - nix-shell --pure --run "NIX_PATH=${NIX_PATH} ./build.sh $args" + nix-shell --pure --keep SCONS_CACHE --run "NIX_PATH=${NIX_PATH} ./build.sh $args" exit fi