From 811f3e8605ce779830fa4770cd7ef3cda81afdf1 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 30 Jun 2021 22:14:41 +0300 Subject: nix registry pin: add a way to pin to a custom locked --- src/libfetchers/registry.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libfetchers/registry.cc') 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 getUserRegistry() return userRegistry; } +std::shared_ptr getCustomRegistry(Path p) +{ + static auto customRegistry = + Registry::read(p, Registry::Custom); + return customRegistry; +} + static std::shared_ptr flagRegistry = std::make_shared(Registry::Flag); -- cgit v1.2.3