aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/registry.hh
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.hh
parent093ed4763615a73edb1e8567d2f41d55ff5aaa0c (diff)
nix registry pin: add a way to pin to a custom locked
Diffstat (limited to 'src/libfetchers/registry.hh')
-rw-r--r--src/libfetchers/registry.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libfetchers/registry.hh b/src/libfetchers/registry.hh
index 1077af020..cde22dff6 100644
--- a/src/libfetchers/registry.hh
+++ b/src/libfetchers/registry.hh
@@ -14,6 +14,7 @@ struct Registry
User = 1,
System = 2,
Global = 3,
+ Custom = 4,
};
RegistryType type;
@@ -48,6 +49,8 @@ typedef std::vector<std::shared_ptr<Registry>> Registries;
std::shared_ptr<Registry> getUserRegistry();
+std::shared_ptr<Registry> getCustomRegistry(Path p);
+
Path getUserRegistryPath();
Registries getRegistries(ref<Store> store);