diff options
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/installables.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 39162a662..10855688c 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -763,10 +763,8 @@ std::set<RealisedPath> toRealisedPaths( if (mode == Realise::Nothing) settings.readOnlyMode = true; - for (auto & i : installables) - for (auto & b : i->toDerivedPathsWithHints()) - if (auto bfd = std::get_if<DerivedPathWithHints::Built>(&b)) - res.insert(bfd->drvPath); + auto drvPaths = toDerivations(store, installables, true); + res.insert(drvPaths.begin(), drvPaths.end()); } return res; |