diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-23T21·11-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-23T21·11-0400 |
commit | ed59bf7a181bb382dea7dd72da52bf91f60deb8d (patch) | |
tree | 68e25713a2a23f3772d1b9d26d1002922885d27e /scripts/nix-build.in | |
parent | 6852289c46cdfceb07b459cd1028722ffb124ca6 (diff) |
nix-build: Support the ‘-’ argument to build an expression from stdin
Diffstat (limited to 'scripts/nix-build.in')
-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 35b186bb715d..afe0679a47d3 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; |