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:
parent
62309a2c56
commit
03103c0a36
4 changed files with 23 additions and 30 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue