1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
///@file
#include "lix/libutil/archive.hh"
#include "lix/libutil/source-path.hh"
#include "lix/libstore/store-api.hh"
#include "lix/libutil/repair-flag.hh"
#include "lix/libstore/content-address.hh"
namespace nix {
/**
* Copy the `path` to the Nix store.
*/
kj::Promise<Result<StorePath>> fetchToStoreFlat(
Store & store,
const CheckedSourcePath & path,
std::string_view name = "source",
RepairFlag repair = NoRepair);
kj::Promise<Result<StorePath>> fetchToStoreRecursive(
Store & store,
const PreparedDump & contents,
std::string_view name = "source",
RepairFlag repair = NoRepair);
}
|