about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T11·48+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T11·48+0200
commita80f11bf7b78c22da0c35c1a6ff5dad14e914f28 (patch)
tree7c9efef8599ab3af010372dacc2740df54456823
parent99c2c14f5016e9f9afb76b9ff3e9727ec2fd39a0 (diff)
nix-shell: Support multiple "#! nix-shell" lines
-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 5e988cc411f8..0a4431681cb1 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -56,7 +56,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) {
             while (<SCRIPT>) {
                 chomp;
                 if (/^\#\!\s*nix-shell (.*)$/) {
-                    @ARGV = split / /, $1;
+                    push @ARGV, split(/ /, $1);
                 }
             }
         }