summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorAristid Breitkreuz <aristidb@gmail.com>2014-05-04 14:26:41 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-26 17:24:43 +0200
commita457d5ad4d7f6cd4f817581de1b4f70cdad9c617 (patch)
tree2b9bd75088aecabeb6f8c6e9e2684fa346b6336f /scripts
parentb1d39d476544644b2de8addb5ad3289fede2f95a (diff)
downloadguix-a457d5ad4d7f6cd4f817581de1b4f70cdad9c617.tar.gz
nix-build: --add-root also takes 1 parameter
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nix-build.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 2f95e74755..74307a5baf 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -93,7 +93,7 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
         $n += 2;
     }
 
-    elsif ($arg eq "--max-jobs" || $arg eq "-j" || $arg eq "--max-silent-time" || $arg eq "--log-type" || $arg eq "--cores" || $arg eq "--timeout") {
+    elsif ($arg eq "--max-jobs" || $arg eq "-j" || $arg eq "--max-silent-time" || $arg eq "--log-type" || $arg eq "--cores" || $arg eq "--timeout" || $arg eq '--add-root') {
         $n++;
         die "$0: `$arg' requires an argument\n" unless $n < scalar @ARGV;
         push @buildArgs, ($arg, $ARGV[$n]);