Restructure installables handling in the "nix" command
This commit is contained in:
parent
1bb87c0487
commit
bcecc99007
9 changed files with 265 additions and 132 deletions
|
|
@ -79,6 +79,13 @@ StoreCommand::StoreCommand()
|
|||
mkFlag(0, "store", "store-uri", "URI of the Nix store to use", &storeUri);
|
||||
}
|
||||
|
||||
ref<Store> StoreCommand::getStore()
|
||||
{
|
||||
if (!_store)
|
||||
_store = createStore();
|
||||
return ref<Store>(_store);
|
||||
}
|
||||
|
||||
ref<Store> StoreCommand::createStore()
|
||||
{
|
||||
return openStore(storeUri);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue