forked from lix-project/nix-eval-jobs
Fix iterating over input derivation outputs
This commit is contained in:
parent
5ac2dd6281
commit
cb9c7cac6b
|
@ -241,8 +241,13 @@ struct Drv {
|
||||||
drvPath = localStore->printStorePath(drvInfo.requireDrvPath());
|
drvPath = localStore->printStorePath(drvInfo.requireDrvPath());
|
||||||
|
|
||||||
auto drv = localStore->readDerivation(drvInfo.requireDrvPath());
|
auto drv = localStore->readDerivation(drvInfo.requireDrvPath());
|
||||||
for (auto &input : drv.inputDrvs) {
|
for (const auto &[inputDrvPath, inputNode] : drv.inputDrvs.map) {
|
||||||
inputDrvs[localStore->printStorePath(input.first)] = input.second;
|
std::set<std::string> inputDrvOutputs;
|
||||||
|
for (auto &outputName : inputNode.value) {
|
||||||
|
inputDrvOutputs.insert(outputName);
|
||||||
|
}
|
||||||
|
inputDrvs[localStore->printStorePath(inputDrvPath)] =
|
||||||
|
inputDrvOutputs;
|
||||||
}
|
}
|
||||||
name = drvInfo.queryName();
|
name = drvInfo.queryName();
|
||||||
system = drv.platform;
|
system = drv.platform;
|
||||||
|
|
Loading…
Reference in a new issue