From dc528128cc5230c9eb7da0abb0a791f94e0e3b56 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Nov 2005 13:58:23 +0000 Subject: [PATCH] * FreeBSD compatibility fix. --- scripts/nix-push.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 85b74b84c..d6abf62ee 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 () { chomp;