forked from lix-project/lix
* nix-build: pass --argstr to nix-instantiate.
This commit is contained in:
parent
ca210d2a58
commit
6784b14241
|
@ -77,9 +77,9 @@ EOF
|
||||||
push @instArgs, ("--attr", $ARGV[$n]);
|
push @instArgs, ("--attr", $ARGV[$n]);
|
||||||
}
|
}
|
||||||
|
|
||||||
elsif ($arg eq "--arg") {
|
elsif ($arg eq "--arg" || $arg eq "--argstr") {
|
||||||
die "$0: `--arg' requires two arguments\n" unless $n + 2 < scalar @ARGV;
|
die "$0: `$arg' requires two arguments\n" unless $n + 2 < scalar @ARGV;
|
||||||
push @instArgs, ("--arg", $ARGV[$n + 1], $ARGV[$n + 2]);
|
push @instArgs, ($arg, $ARGV[$n + 1], $ARGV[$n + 2]);
|
||||||
$n += 2;
|
$n += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue