From 70cae879e3c3f5c3fba906ba5ec220f84cff1d61 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 8 Feb 2015 20:44:05 -0500 Subject: [PATCH] nix-build: Respect -Q during evaluation Fixes #474 --- scripts/nix-build.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index ca43041b7..7e1f28870 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -200,6 +200,11 @@ for (my $n = 0; $n < scalar @ARGV; $n++) { push @buildArgs, $arg; } + elsif ($arg eq "-Q" || $arg eq "--no-build-output") { + push @buildArgs, $arg; + push @instArgs, $arg; + } + else { push @exprs, $arg; }