1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

build-remote.pl: Fix build log

This commit is contained in:
Eelco Dolstra 2014-07-12 00:09:43 +02:00
parent 838138c5c4
commit a00a98548e
2 changed files with 5 additions and 3 deletions

View file

@ -107,11 +107,13 @@ sub writeStrings {
sub connectToRemoteNix {
my ($sshHost, $sshOpts) = @_;
my ($sshHost, $sshOpts, $extraFlags) = @_;
$extraFlags ||= "";
# Start nix-store --serve on the remote host.
my ($from, $to);
my $pid = open2($from, $to, "ssh $sshHost @{$sshOpts} nix-store --serve --write");
my $pid = open2($from, $to, "ssh $sshHost @{$sshOpts} nix-store --serve --write $extraFlags");
# Do the handshake.
my $SERVE_MAGIC_1 = 0x390c9deb; # FIXME