Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
input-cache.hh
1#pragma once
2
4
5namespace nix::fetchers {
6
7enum class UseRegistries : int;
8struct Settings;
9
11{
13 {
14 ref<SourceAccessor> accessor;
15 Input resolvedInput;
16 Input lockedInput;
17 Attrs extraAttrs;
18 };
19
21 getAccessor(const Settings & settings, Store & store, const Input & originalInput, UseRegistries useRegistries);
22
24 {
25 Input lockedInput;
26 ref<SourceAccessor> accessor;
27 Attrs extraAttrs;
28 };
29
30 virtual std::optional<CachedInput> lookup(const Input & originalInput) const = 0;
31
32 virtual void upsert(Input key, CachedInput cachedInput) = 0;
33
34 virtual void clear() = 0;
35
36 static ref<InputCache> create();
37
38 virtual ~InputCache();
39};
40
41} // namespace nix::fetchers
std::map< std::string, Attr > Attrs
Definition attrs.hh:68
Definition store-api.hh:397
Definition ref.hh:58
Definition input-cache.hh:24
Definition input-cache.hh:13
Definition input-cache.hh:11
Definition fetchers.hh:36
Definition fetch-settings.hh:27