From ed59bf7a181bb382dea7dd72da52bf91f60deb8d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 23 Jul 2012 17:11:12 -0400 Subject: nix-build: Support the ‘-’ argument to build an expression from stdin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/nix-build.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/nix-build.in') 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; -- cgit 1.4.1