1
0
Fork 0
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:
Eelco Dolstra 2017-05-01 15:00:39 +02:00
parent b986c7f8b1
commit ca9f589a93
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 8 additions and 16 deletions

View file

@ -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)