about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-23T21·11-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-23T21·11-0400
commited59bf7a181bb382dea7dd72da52bf91f60deb8d (patch)
tree68e25713a2a23f3772d1b9d26d1002922885d27e
parent6852289c46cdfceb07b459cd1028722ffb124ca6 (diff)
nix-build: Support the ‘-’ argument to build an expression from stdin
-rwxr-xr-xscripts/nix-build.in4
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;