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

ExternalDerivationBuilder: Pass the (scratch) outputs

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

View file

@ -74,6 +74,12 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
l.push_back(store.printStorePath(i));
json.emplace("inputPaths", std::move(l));
}
{
auto l = nlohmann::json::object();
for (auto & i : scratchOutputs)
l.emplace(i.first, store.printStorePath(i.second));
json.emplace("outputs", 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: