Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
fetch-to-store.hh
1#pragma once
2
9
10namespace nix {
11
12enum struct FetchMode { DryRun, Copy };
13
17StorePath fetchToStore(
18 const fetchers::Settings & settings,
19 Store & store,
20 const SourcePath & path,
21 FetchMode mode,
22 std::string_view name = "source",
24 PathFilter * filter = nullptr,
25 RepairFlag repair = NoRepair);
26
27std::pair<StorePath, Hash> fetchToStore2(
28 const fetchers::Settings & settings,
29 Store & store,
30 const SourcePath & path,
31 FetchMode mode,
32 std::string_view name = "source",
34 PathFilter * filter = nullptr,
35 RepairFlag repair = NoRepair);
36
38makeSourcePathToHashCacheKey(std::string_view fingerprint, ContentAddressMethod method, const CanonPath & path);
39
40} // namespace nix
Definition canon-path.hh:50
Definition path.hh:33
Definition store-api.hh:397
Utilities for working with the file system and file paths.
fun< bool(const std::string &path)> PathFilter
Definition file-system.hh:494
SourcePath.
Definition content-address.hh:32
@ NixArchive
Definition content-address.hh:51
Definition source-path.hh:22
std::pair< Domain, Attrs > Key
Definition cache.hh:31
Definition fetch-settings.hh:27