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:
parent
093ed47636
commit
811f3e8605
3 changed files with 27 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue