diff options
Diffstat (limited to 'third_party/nix/src/nix-build')
-rw-r--r-- | third_party/nix/src/nix-build/nix-build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix-build/nix-build.cc b/third_party/nix/src/nix-build/nix-build.cc index b00062de0ea0..7e3ee11d68f0 100644 --- a/third_party/nix/src/nix-build/nix-build.cc +++ b/third_party/nix/src/nix-build/nix-build.cc @@ -196,9 +196,9 @@ static void _main(int argc, char** argv) { } else if (*arg == "--expr" || *arg == "-E") { fromArgs = true; - } else if (*arg == "--pure") { + } else if (runEnv && *arg == "--pure") { pure = true; - } else if (*arg == "--impure") { + } else if (runEnv && *arg == "--impure") { pure = false; } else if (*arg == "--packages" || *arg == "-p") { |