diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-30 12:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 12:45:11 +0200 |
commit | 33bd10549e077f9b4a490f540df979ee17ff69f7 (patch) | |
tree | 73be3d5ab96b7a0b78c1bbe7aa1c8499355bb941 /src/nix/flake.cc | |
parent | e6109ec76538f05723863dce5a84a3d4f5a85cb7 (diff) | |
parent | 35d1c95f7f6fc744a829bb25b75c15cc2da31e99 (diff) |
Merge pull request #67 from tweag/fixFlakeList
Fix flag registry order
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r-- | src/nix/flake.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index a25493f79..a80338fd3 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -30,13 +30,13 @@ struct CmdFlakeList : StoreCommand, MixEvalArgs stopProgressBar(); - for (auto & entry : registries[0]->entries) + for (auto & entry : registries[FLAG_REGISTRY]->entries) std::cout << entry.first.to_string() << " flags " << entry.second.to_string() << "\n"; - for (auto & entry : registries[1]->entries) + for (auto & entry : registries[USER_REGISTRY]->entries) std::cout << entry.first.to_string() << " user " << entry.second.to_string() << "\n"; - for (auto & entry : registries[2]->entries) + for (auto & entry : registries[GLOBAL_REGISTRY]->entries) std::cout << entry.first.to_string() << " global " << entry.second.to_string() << "\n"; } }; |