1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

nix-copy-closure -s: Do substitutions via ‘nix-store --serve’

This means we no longer need an SSH master connection, since we only
execute a single command on the remote host.
This commit is contained in:
Eelco Dolstra 2014-07-10 20:43:04 +02:00
parent 7c3a5090bf
commit 7bb632b024
4 changed files with 43 additions and 11 deletions

View file

@ -81,9 +81,6 @@ while (@ARGV) {
die "$0: you did not specify a host name\n" unless defined $sshHost;
openSSHConnection $sshHost or die "$0: unable to start SSH\n";
if ($toMode) { # Copy TO the remote machine.
Nix::CopyClosure::copyTo(
$sshHost, [ @sshOpts ], [ @storePaths ], $compressor, $decompressor,
@ -92,6 +89,8 @@ if ($toMode) { # Copy TO the remote machine.
else { # Copy FROM the remote machine.
openSSHConnection $sshHost or die "$0: unable to start SSH\n";
# Query the closure of the given store paths on the remote
# machine. Paths are assumed to be store paths; there is no
# resolution (following of symlinks).