From 6784b14241c916943cd9b1b0fa0af66fb574605c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Nov 2007 16:52:40 +0000 Subject: [PATCH] * nix-build: pass --argstr to nix-instantiate. --- scripts/nix-build.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index bce4a8007..1d2584bfb 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; }