diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-03-27 14:40:36 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-03-27 14:40:36 +0100 |
commit | c101b29133200442de05275c725c8d77aa888b27 (patch) | |
tree | 3c1f2b64cb63b1944acc0aa38433e8ec45fc4879 /src/nix | |
parent | be7fd6359559717b83833d96d4b6dc38ceb83092 (diff) | |
parent | a554f523db34a5d6a8281c5228acfc128a8bd589 (diff) |
Merge remote-tracking branch 'tweag/flake-registries' into flakes
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/flake.cc | 8 |
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"; + } } } }; |