mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* nix-build: pass --argstr to nix-instantiate.
This commit is contained in:
parent
ca210d2a58
commit
6784b14241
1 changed files with 3 additions and 3 deletions
|
@ -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