about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nix-build.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 060b08089707..168730bbc92d 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -137,9 +137,8 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
         push @envExclude, $ARGV[$n];
     }
 
-    elsif ($arg eq "--pure") {
-        $pure = 1;
-    }
+    elsif ($arg eq "--pure") { $pure = 1; }
+    elsif ($arg eq "--impure") { $pure = 0; }
 
     elsif (substr($arg, 0, 1) eq "-") {
         push @buildArgs, $arg;