diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-23 17:11:12 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-23 17:11:12 -0400 |
commit | ed59bf7a181bb382dea7dd72da52bf91f60deb8d (patch) | |
tree | 68e25713a2a23f3772d1b9d26d1002922885d27e | |
parent | 6852289c46cdfceb07b459cd1028722ffb124ca6 (diff) |
nix-build: Support the ‘-’ argument to build an expression from stdin
-rwxr-xr-x | scripts/nix-build.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 35b186bb7..afe0679a4 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -118,6 +118,10 @@ EOF elsif ($arg eq "--show-trace") { push @instArgs, $arg; } + + elsif ($arg eq "-") { + @exprs = ("-"); + } elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") { push @buildArgs, $arg; |