about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-11-17T13·58+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-11-17T13·58+0000
commitdc528128cc5230c9eb7da0abb0a791f94e0e3b56 (patch)
treecc31e73856afcaf0378b227ecb2520efc7014757 /scripts/nix-push.in
parent44409f52c1984542d1e565b55e5b94f29c686c7b (diff)
* FreeBSD compatibility fix.
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index 85b74b84cc95..d6abf62ee6e9 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -132,7 +132,8 @@ while (scalar @tmp > 0) {
     # reference (see above).  Even if that is fixed, using a hook
     # probably wouldn't make that much sense; pumping lots of data
     # around just to compress them won't gain that much.
-    my $pid = open(READ, "NIX_BUILD_HOOK= $binDir/nix-store --realise @tmp2|")
+    $ENV{"NIX_BUILD_HOOK"} = "";
+    my $pid = open(READ, "$binDir/nix-store --realise @tmp2|")
         or die "cannot run nix-store";
     while (<READ>) {
         chomp;