1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 08:53:55 +02:00

Implement nix-copy-closure --from via nix-store --serve

This commit is contained in:
Eelco Dolstra 2014-07-24 16:00:29 +02:00
parent 62309a2c56
commit 03103c0a36
4 changed files with 23 additions and 30 deletions

View file

@ -272,7 +272,8 @@ if ($res != 0) {
# Copy the output from the build machine.
my @outputs2 = grep { !isValidPath($_) } @outputs;
if (scalar @outputs2 > 0) {
writeInt(5, $to) or die; # == cmdExportPaths
writeInt(5, $to); # == cmdExportPaths
writeInt(0, $to); # don't sign
writeStrings(\@outputs2, $to);
$ENV{'NIX_HELD_LOCKS'} = "@outputs2"; # FIXME: ugly
importPaths(fileno($from));