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