From f8713e1287e2641c3d2550f7af1a445c77b8552a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Dec 2008 10:40:41 +0000 Subject: * Dirty hack to make nix-push work properly on derivations: the derivation should be a source rather than a derivation dependency of the call to the NAR derivation. Otherwise the derivation (and all its dependencies) will be built as a side-effect, which may not even succeed. --- scripts/nix-push.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/nix-push.in b/scripts/nix-push.in index c7a0dc6687..ba611465c9 100644 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -128,7 +128,7 @@ while () { close READ or die "nix-instantiate failed: $?"; -# Realise the store expressions. +# Build the derivations. print STDERR "creating archives...\n"; my @narPaths; @@ -144,7 +144,6 @@ 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. - $ENV{"NIX_BUILD_HOOK"} = ""; my $pid = open(READ, "$binDir/nix-store --no-build-hook --realise @tmp2|") or die "cannot run nix-store"; while () { -- cgit 1.4.1