diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-07-07 09:57:15 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-07-07 09:57:15 +0200 |
commit | e37ecd1282f7ab2799db54eea5a12d078a5bd96f (patch) | |
tree | 58770edfd1cae836379d06aee30808df176d05ad /src/libfetchers/registry.cc | |
parent | 24bc9354627b3b6d65efb9bb18faa57d681624db (diff) | |
parent | d8ad6f1c108ec253b307c30aadee460cf602dbd1 (diff) |
Merge branch 'balsoft/registry' of https://github.com/serokell/nix
Diffstat (limited to 'src/libfetchers/registry.cc')
-rw-r--r-- | src/libfetchers/registry.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc index 74376adc0..c2dfa9dc6 100644 --- a/src/libfetchers/registry.cc +++ b/src/libfetchers/registry.cc @@ -124,6 +124,13 @@ std::shared_ptr<Registry> getUserRegistry() return userRegistry; } +std::shared_ptr<Registry> getCustomRegistry(Path p) +{ + static auto customRegistry = + Registry::read(p, Registry::Custom); + return customRegistry; +} + static std::shared_ptr<Registry> flagRegistry = std::make_shared<Registry>(Registry::Flag); |