Flox Package Database 1
CRUD Operations on Nix Package Metadata
|
Provides a registry of PkgDb managers. More...
#include <input.hh>
Public Member Functions | |
nix::ref< Registry< PkgDbInputFactory > > | getPkgDbRegistry () |
Get the set of package databases to resolve in. | |
bool | isPkgDbForced () const |
Whether DBs will be regenerated from scratch. | |
void | setPkgDbForced (bool force) |
Set whether DBs will be regenerated from scratch. | |
Protected Member Functions | |
void | initRegistry () |
Initialize registry member from params.registry. | |
void | scrapeIfNeeded () |
Lazily perform scraping on input flakes. | |
virtual RegistryRaw | getRegistryRaw ()=0 |
virtual const std::vector< System > & | getSystems ()=0 |
![]() | |
NixStoreMixin (const NixStoreMixin &)=default | |
NixStoreMixin (NixStoreMixin &&)=default | |
NixStoreMixin & | operator= (const NixStoreMixin &)=default |
NixStoreMixin & | operator= (NixStoreMixin &&)=default |
NixStoreMixin (const nix::ref< nix::Store > &store) | |
Construct NixStoreMixin from an existing store connection. | |
NixStoreMixin () | |
Construct NixStoreMixin using the systems default nix store. | |
nix::ref< nix::Store > | getStore () |
Lazily open a nix store connection. | |
Private Attributes | |
std::shared_ptr< Registry< PkgDbInputFactory > > | registry |
bool | force = false |
Provides a registry of PkgDb managers.
Derived classes must provide their own getRegistryRaw and getSystems implementations to support initRegistry and scrapeIfNeeded.
nix::ref< Registry< PkgDbInputFactory > > flox::pkgdb::PkgDbRegistryMixin::getPkgDbRegistry | ( | ) |
Get the set of package databases to resolve in.
This lazily initializes the registry and scrapes inputs when necessary.
|
protectedpure virtual |
|
protectedpure virtual |
|
protected |
Lazily perform scraping on input flakes.
If scraping is necessary temprorary read/write handles are opened for those flakes and closed before returning from this function.
|
private |
Whether to force re-evaluation of flakes.