1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00

nix registry pin: add a way to pin to a custom locked

This commit is contained in:
Alexander Bantyev 2021-06-30 22:14:41 +03:00
parent 093ed47636
commit 811f3e8605
No known key found for this signature in database
GPG key ID: E081FF12ADCB4AD5
3 changed files with 27 additions and 2 deletions

View file

@ -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);