Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
fetch-to-store.hh
1#pragma once
2
3#include "source-path.hh"
4#include "store-api.hh"
5#include "file-system.hh"
6#include "repair-flag.hh"
8
9namespace nix {
10
11enum struct FetchMode { DryRun, Copy };
12
16StorePath fetchToStore(
17 Store & store,
18 const SourcePath & path,
19 FetchMode mode,
20 std::string_view name = "source",
21 ContentAddressMethod method = ContentAddressMethod::Raw::NixArchive,
22 PathFilter * filter = nullptr,
23 RepairFlag repair = NoRepair);
24
25}
Definition path.hh:27
Definition store-api.hh:169
std::function< bool(const Path &path)> PathFilter
Definition file-system.hh:365
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
const std::string_view & name
Definition lexer.l:1709
RepairFlag repair
Definition lexer.l:7173
SourcePath.
Definition content-address.hh:31
Definition source-path.hh:22