Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
builtins.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/derivations.hh
"
5
#include "nix/store/config.hh"
6
7
#if NIX_WITH_AWS_AUTH
8
# include "
nix/store/aws-creds.hh
"
9
#endif
10
11
namespace
nix {
12
13
struct
BuiltinBuilderContext
14
{
15
const
BasicDerivation & drv;
16
std::map<std::string, std::string> outputs;
17
std::string netrcData;
18
std::string caFileData;
19
Strings hashedMirrors;
20
std::filesystem::path tmpDirInSandbox;
21
22
#if NIX_WITH_AWS_AUTH
27
std::optional<AwsCredentials> awsCredentials;
28
#endif
29
};
30
31
using
BuiltinBuilder =
fun
<void(
const
BuiltinBuilderContext
&)>;
32
33
struct
RegisterBuiltinBuilder
34
{
35
typedef
std::map<std::string, BuiltinBuilder> BuiltinBuilders;
36
37
static
BuiltinBuilders & builtinBuilders();
38
39
RegisterBuiltinBuilder(
const
std::string & name, BuiltinBuilder && builder)
40
{
41
builtinBuilders().insert_or_assign(name, std::move(builder));
42
}
43
};
44
45
}
// namespace nix
aws-creds.hh
nix::fun
Definition
fun.hh:19
derivations.hh
nix::BuiltinBuilderContext
Definition
builtins.hh:14
libstore
include
nix
store
builtins.hh
Generated by
1.18.0