From c9ddfc7e791abd8c1720db713014232c98a5c6a0 Mon Sep 17 00:00:00 2001 From: phaer Date: Wed, 19 Apr 2023 18:47:02 +0200 Subject: [PATCH] feat(writers): keep OUT in writePureShellScript --- v1/nix/modules/flake-parts/writers.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v1/nix/modules/flake-parts/writers.nix b/v1/nix/modules/flake-parts/writers.nix index fc50e8cc..e1d17a49 100644 --- a/v1/nix/modules/flake-parts/writers.nix +++ b/v1/nix/modules/flake-parts/writers.nix @@ -19,6 +19,7 @@ - PATH only contains exactly the packages passed via the PATH arg - NIX_PATH is set to the path of the current `pkgs` - TMPDIR is set up and cleaned up even if the script fails + - out, if set, is kept as-is - all environment variables are unset, except: - the ones listed in `keepVars` below - ones listed via the KEEP_VARS variable @@ -67,6 +68,7 @@ "no_proxy" # We want to keep out own variables as well + "out" "IMPURE" "KEEP_VARS" "NIX_PATH"