aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/registry.cc
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2021-06-30 22:14:41 +0300
committerAlexander Bantyev <balsoft@balsoft.ru>2021-06-30 22:16:40 +0300
commit811f3e8605ce779830fa4770cd7ef3cda81afdf1 (patch)
tree7ac00d794afb930f2ef685f31b2367ff709cefd4 /src/libfetchers/registry.cc
parent093ed4763615a73edb1e8567d2f41d55ff5aaa0c (diff)
nix registry pin: add a way to pin to a custom locked
Diffstat (limited to 'src/libfetchers/registry.cc')
-rw-r--r--src/libfetchers/registry.cc7
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);