mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
build-remote: Don't copy the .drv closure
Since build-remote uses buildDerivation() now, we don't need to copy the .drv file anymore. This greatly reduces the set of input paths copied to the remote side (e.g. from 392 to 51 store paths for GNU hello on x86_64-darwin).
This commit is contained in:
parent
b986c7f8b1
commit
ca9f589a93
2 changed files with 8 additions and 16 deletions
|
@ -269,8 +269,11 @@ connected:
|
|||
copyPaths(store, ref<Store>(sshStore), inputs);
|
||||
uploadLock = -1;
|
||||
|
||||
printError("building ‘%s’ on ‘%s’", drvPath, hostName);
|
||||
sshStore->buildDerivation(drvPath, readDerivation(drvPath));
|
||||
BasicDerivation drv(readDerivation(drvPath));
|
||||
drv.inputSrcs = inputs;
|
||||
|
||||
printError("building ‘%s’ on ‘%s’", drvPath, storeUri);
|
||||
sshStore->buildDerivation(drvPath, drv);
|
||||
|
||||
PathSet missing;
|
||||
for (auto & path : outputs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue