diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-11-15T16·52+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-11-15T16·52+0000 |
commit | 6784b14241c916943cd9b1b0fa0af66fb574605c (patch) | |
tree | 128693fa89eb8bd688df3b396cc321434ca0b7f1 /scripts | |
parent | ca210d2a581622e0276c5e98420189374652d24a (diff) |
* nix-build: pass --argstr to nix-instantiate.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-build.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index bce4a80078f9..1d2584bfb2b2 100644 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -77,9 +77,9 @@ EOF push @instArgs, ("--attr", $ARGV[$n]); } - elsif ($arg eq "--arg") { - die "$0: `--arg' requires two arguments\n" unless $n + 2 < scalar @ARGV; - push @instArgs, ("--arg", $ARGV[$n + 1], $ARGV[$n + 2]); + elsif ($arg eq "--arg" || $arg eq "--argstr") { + die "$0: `$arg' requires two arguments\n" unless $n + 2 < scalar @ARGV; + push @instArgs, ($arg, $ARGV[$n + 1], $ARGV[$n + 2]); $n += 2; } |