1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 15:32:43 +01:00

ExternalDerivationBuilder: Pass inputPaths

This commit is contained in:
Eelco Dolstra 2025-10-06 11:29:15 +02:00
parent 73e4c40e64
commit 6c0d67769d
2 changed files with 12 additions and 39 deletions

View file

@ -68,6 +68,12 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
json.emplace("storeDir", store.storeDir);
json.emplace("realStoreDir", store.config->realStoreDir.get());
json.emplace("system", drv.platform);
{
auto l = nlohmann::json::array();
for (auto & i : inputPaths)
l.push_back(store.printStorePath(i));
json.emplace("inputPaths", std::move(l));
}
// TODO(cole-h): writing this to stdin is too much effort right now, if we want to revisit
// that, see this comment by Eelco about how to make it not suck: