diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-02-03 10:34:15 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-02-03 10:34:15 +0000 |
commit | 1bb0f1e84b7c9444a2fd922a658d721da3da00fd (patch) | |
tree | 611edc91494d340a21bcd4531e29388f5e465691 /scripts/build-remote.pl.in | |
parent | b682fae9d93037af65282e02b88a9ce34129026e (diff) |
* Build hook: compress the transferred data.
Diffstat (limited to 'scripts/build-remote.pl.in')
-rwxr-xr-x | scripts/build-remote.pl.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in index e821b4071..53ad8fa20 100755 --- a/scripts/build-remote.pl.in +++ b/scripts/build-remote.pl.in @@ -180,7 +180,7 @@ print "COPYING INPUTS...\n"; my $maybeSign = ""; $maybeSign = "--sign" if -e "/nix/etc/nix/signing-key.sec"; -system("NIX_SSHOPTS=\"$sshOpts\" nix-copy-closure $hostName $maybeSign $drvPath $inputs") == 0 +system("NIX_SSHOPTS=\"$sshOpts\" nix-copy-closure --gzip $hostName $maybeSign $drvPath $inputs") == 0 or die "cannot copy inputs to $hostName: $?"; print "BUILDING...\n"; @@ -209,6 +209,6 @@ foreach my $output (split '\n', $outputs) { my $maybeSignRemote = ""; $maybeSignRemote = "--sign" if $UID != 0; - system("ssh $sshOpts $hostName 'nix-store --export $maybeSignRemote $output' | @bindir@/nix-store --import > /dev/null") == 0 + system("ssh $sshOpts $hostName 'nix-store --export $maybeSignRemote $output | gzip' | gunzip | @bindir@/nix-store --import > /dev/null") == 0 or die "cannot copy $output from $hostName: $?"; } |