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:
parent
6c0d67769d
commit
68bd2e40f4
2 changed files with 12 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue