forked from lix-project/lix
nix-build: Support the ‘-’ argument to build an expression from stdin
This commit is contained in:
parent
6852289c46
commit
ed59bf7a18
|
@ -119,6 +119,10 @@ EOF
|
||||||
push @instArgs, $arg;
|
push @instArgs, $arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elsif ($arg eq "-") {
|
||||||
|
@exprs = ("-");
|
||||||
|
}
|
||||||
|
|
||||||
elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") {
|
elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") {
|
||||||
push @buildArgs, $arg;
|
push @buildArgs, $arg;
|
||||||
push @instArgs, $arg;
|
push @instArgs, $arg;
|
||||||
|
|
Loading…
Reference in a new issue