7namespace nix {
class Store; }
9namespace nix::fetchers {
32 std::vector<Entry> entries;
34 Registry(
const Settings & settings, RegistryType type)
39 static std::shared_ptr<Registry> read(
41 const Path & path, RegistryType
type);
43 void write(
const Path & path);
48 const Attrs & extraAttrs);
50 void remove(
const Input & input);
53typedef std::vector<std::shared_ptr<Registry>> Registries;
55std::shared_ptr<Registry> getUserRegistry(
const Settings & settings);
57std::shared_ptr<Registry> getCustomRegistry(
const Settings & settings,
const Path &
p);
59Path getUserRegistryPath();
66 const Attrs & extraAttrs);
68using RegistryFilter = std::function<bool(Registry::RegistryType)>;
74std::pair<Input, Attrs> lookupInRegistries(
77 const RegistryFilter & filter = {});
std::map< std::string, Attr > Attrs
Definition attrs.hh:22
Definition store-api.hh:169
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
std::shared_ptr< T > p
Definition lexer.l:1269
ValueType type
Definition lexer.l:7098
std::string std::string_view from
Definition lexer.l:2591
std::string std::string_view std::string_view to
Definition lexer.l:2592
Definition registry.hh:26
Definition fetch-settings.hh:15
std::string Path
Definition types.hh:22