about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-12-09T18·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-12-09T18·08+0000
commitc4c84d1edb4e0dd4ed77a9b2d1386834cdfaaa34 (patch)
tree91dad1471e9a2129ca8ee764f5a9bd5f018ecbf5
parentbcd6cdf0d8d52bb5d459911bc552260d67c1bb38 (diff)
* nix-build: be less verbose.
-rw-r--r--scripts/nix-build.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 1134eb4272bb..d27eb08e223e 100644
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -12,6 +12,7 @@ my $outLink;
 my $drvLink;
 
 my $dryRun = 0;
+my $verbose = 0;
 
 my @instArgs = ();
 my @buildArgs = ();
@@ -116,6 +117,12 @@ EOF
         push @instArgs, $arg;
     }
     
+    elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") {
+        push @buildArgs, $arg;
+        push @instArgs, $arg;
+        $verbose = 1;
+    }
+    
     elsif (substr($arg, 0, 1) eq "-") {
         push @buildArgs, $arg;
     }
@@ -153,7 +160,7 @@ foreach my $expr (@exprs) {
 
     foreach my $drvPath (@drvPaths) {
         my $target = readlink $drvPath or die "cannot read symlink `$drvPath'";
-        print STDERR "store derivation is $target\n";
+        print STDERR "derivation is $target\n" if $verbose;
     }
 
     # Build.