diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 85b74b84cc..d6abf62ee6 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;