![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include "nix/util/error.hh"#include "nix/util/types.hh"#include "nix/util/json-non-null.hh"#include <nlohmann/json_fwd.hpp>Go to the source code of this file.
Classes | |
| class | nix::MissingExperimentalFeature |
Typedefs | |
| using | nix::Xp = ExperimentalFeature |
Enumerations | |
| enum struct | nix::ExperimentalFeature { CaDerivations , ImpureDerivations , Flakes , FetchTree , NixCommand , GitHashing , RecursiveNix , FetchClosure , AutoAllocateUids , Cgroups , DynamicDerivations , ParseTomlTimestamps , ReadOnlyLocalStore , LocalOverlayStore , ConfigurableImpureEnv , MountedSSHStore , VerifiedFetches , PipeOperators , ExternalBuilders , BLAKE3Hashes } |
Functions | |
| const std::optional< ExperimentalFeature > | nix::parseExperimentalFeature (const std::string_view &name) |
| std::string_view | nix::showExperimentalFeature (const ExperimentalFeature tag) |
| nlohmann::json | nix::documentExperimentalFeatures () |
| std::ostream & | nix::operator<< (std::ostream &str, const ExperimentalFeature &feature) |
| std::set< ExperimentalFeature > | nix::parseFeatures (const StringSet &rawFeatures) |
| void | nix::to_json (nlohmann::json &j, const ExperimentalFeature &feature) |
| void | nix::from_json (const nlohmann::json &j, ExperimentalFeature &feature) |
| using nix::Xp = ExperimentalFeature |
Just because writing ExperimentalFeature::CaDerivations is way too long
|
strong |
The list of available experimental features.
If you update this, don’t forget to also change the map defining their string representation and documentation in the corresponding .cc file as well.
| nlohmann::json nix::documentExperimentalFeatures | ( | ) |
Compute the documentation of all experimental features.
See doc/manual for how this information is used.
| std::ostream & nix::operator<< | ( | std::ostream & | str, |
| const ExperimentalFeature & | feature ) |
Shorthand for str << showExperimentalFeature(feature).
| const std::optional< ExperimentalFeature > nix::parseExperimentalFeature | ( | const std::string_view & | name | ) |
Parse an experimental feature (enum value) from its name. Experimental feature flag names are hyphenated and do not contain spaces.
| std::set< ExperimentalFeature > nix::parseFeatures | ( | const StringSet & | ) |
Parse a set of strings to the corresponding set of experimental features, ignoring (but warning for) any unknown feature.
| std::string_view nix::showExperimentalFeature | ( | const ExperimentalFeature | ) |
Show the name of an experimental feature. This is the opposite of parseExperimentalFeature().
| void nix::to_json | ( | nlohmann::json & | , |
| const ExperimentalFeature & | ) |
Semi-magic conversion to and from json. See the nlohmann/json readme for more details.