diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-23T12·33+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-23T12·34+0100 |
commit | c5ba08133370f98de722c978bda3b446721985de (patch) | |
tree | 9974e1ca9373c65ff1e0c321b9c13abe73c931be /scripts/nix-build.in | |
parent | 79dee4283de798da8728dd8504cdc4ab5c9b9fe0 (diff) |
nix-shell: Add --impure flag
This is currently the default, but I might change that to --pure in the future.
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-x | scripts/nix-build.in | 5 |
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; |