From c5ba08133370f98de722c978bda3b446721985de Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Jan 2014 13:33:00 +0100 Subject: [PATCH] nix-shell: Add --impure flag This is currently the default, but I might change that to --pure in the future. --- scripts/nix-build.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 060b08089..168730bbc 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;