Allow SCONS_CACHE env var in pure nix environment

This commit is contained in:
Leroy Hopson 2023-02-12 10:51:45 +13:00
parent 1367133b25
commit f36f1db315
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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