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