Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
experimental-features.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/error.hh
"
5
#include "
nix/util/types.hh
"
6
#include "
nix/util/json-non-null.hh
"
7
8
#include <nlohmann/json_fwd.hpp>
9
10
namespace
nix {
11
19
enum struct
ExperimentalFeature
{
20
CaDerivations,
21
ImpureDerivations,
22
Flakes,
23
FetchTree,
24
NixCommand,
25
GitHashing,
26
RecursiveNix,
27
FetchClosure,
28
AutoAllocateUids,
29
Cgroups,
30
DynamicDerivations,
31
ParseTomlTimestamps,
32
ReadOnlyLocalStore,
33
LocalOverlayStore
,
34
ConfigurableImpureEnv,
35
MountedSSHStore
,
36
VerifiedFetches,
37
PipeOperators,
38
ExternalBuilders,
39
BLAKE3Hashes,
40
};
41
45
using
Xp
=
ExperimentalFeature
;
46
51
const
std::optional<ExperimentalFeature> parseExperimentalFeature(
const
std::string_view & name);
52
57
std::string_view showExperimentalFeature(
const
ExperimentalFeature
);
58
64
nlohmann::json documentExperimentalFeatures();
65
69
std::ostream & operator<<(std::ostream & str,
const
ExperimentalFeature
& feature);
70
75
std::set<ExperimentalFeature> parseFeatures(
const
StringSet
&);
76
81
class
MissingExperimentalFeature final :
public
CloneableError<MissingExperimentalFeature, Error>
82
{
83
void
anchor()
override
;
84
85
public
:
89
ExperimentalFeature
missingFeature
;
90
91
std::string reason;
92
93
MissingExperimentalFeature(
ExperimentalFeature
missingFeature
, std::string reason =
""
);
94
};
95
99
template
<>
100
struct
json_avoids_null<
ExperimentalFeature
> : std::true_type
101
{};
102
107
void
to_json(nlohmann::json &,
const
ExperimentalFeature &);
108
void
from_json(
const
nlohmann::json &, ExperimentalFeature &);
109
110
}
// namespace nix
nix::MissingExperimentalFeature::missingFeature
ExperimentalFeature missingFeature
Definition
experimental-features.hh:89
error.hh
This file defines two main structs/classes used in nix error handling.
nix::ExperimentalFeature
ExperimentalFeature
Definition
experimental-features.hh:19
nix::Xp
ExperimentalFeature Xp
Definition
experimental-features.hh:45
json-non-null.hh
nix::LocalOverlayStore
Definition
local-overlay-store.hh:125
nix::MountedSSHStore
Definition
ssh-store.cc:148
types.hh
nix::StringSet
std::set< std::string, std::less<> > StringSet
Definition
types.hh:45
libutil
include
nix
util
experimental-features.hh
Generated by
1.18.0