We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5756caf commit e5e0900Copy full SHA for e5e0900
src/nix-env/nix-env.cc
@@ -481,12 +481,13 @@ static void printMissing(EvalState & state, PackageInfos & elems)
481
{
482
std::vector<DerivedPath> targets;
483
for (auto & i : elems)
484
- if (auto drvPath = i.queryDrvPath())
485
- targets.emplace_back(DerivedPath::Built{
+ if (auto drvPath = i.queryDrvPath()) {
+ auto path = DerivedPath::Built{
486
.drvPath = makeConstantStorePathRef(*drvPath),
487
.outputs = OutputsSpec::All { },
488
- });
489
- else
+ };
+ targets.emplace_back(std::move(path));
490
+ } else
491
targets.emplace_back(DerivedPath::Opaque{
492
.path = i.queryOutPath(),
493
});
0 commit comments