aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorNick Van den Broeck <nick.van.den.broeck666@gmail.com>2019-03-21 09:30:16 +0100
committerNick Van den Broeck <nick.van.den.broeck666@gmail.com>2019-03-23 13:42:48 +0100
commita554f523db34a5d6a8281c5228acfc128a8bd589 (patch)
tree5c489156c326ec08c357e311c3359c7bf409e30a /src/nix/flake.cc
parent5e4d92d267c080bcb81168e37429bbb56bc39fb2 (diff)
Combining registries properly
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index fda903944..470dfdc08 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -24,12 +24,14 @@ struct CmdFlakeList : StoreCommand, MixEvalArgs
{
auto evalState = std::make_shared<EvalState>(searchPath, store);
- auto registry = evalState->getFlakeRegistry();
+ auto registries = evalState->getFlakeRegistries();
stopProgressBar();
- for (auto & entry : registry.entries) {
- std::cout << entry.first << " " << entry.second.ref.to_string() << "\n";
+ for (auto & registry : registries) {
+ for (auto & entry : registry->entries) {
+ std::cout << entry.first << " " << entry.second.ref.to_string() << "\n";
+ }
}
}
};