![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Types | |
| using | LookupPathHook = std::optional<SourcePath>(EvalState & state, std::string_view) |
| using | LookupPathHooks = std::map<std::string, fun<LookupPathHook>> |
| Public Types inherited from nix::Config | |
| using | Settings = std::map<std::string, SettingData> |
Public Member Functions | |
| EvalSettings (bool &readOnlyMode, LookupPathHooks lookupPathHooks={}) | |
| bool | isReadOnly () const |
| const std::string & | getCurrentSystem () const |
| Public Member Functions inherited from nix::Config | |
| Config (StringMap initials={}) | |
| bool | set (const std::string &name, const std::string &value) override |
| void | addSetting (AbstractSetting *setting) |
| void | getSettings (std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) const override |
| void | resetOverridden () override |
| nlohmann::json | toJSON () override |
| std::string | toKeyValue (bool overriddenOnly=false) override |
| void | convertToArgs (Args &args, const std::string &category) override |
| Public Member Functions inherited from nix::AbstractConfig | |
| void | applyConfig (const std::string &contents, const std::string &path="<unknown>") |
| void | warnUnknownSettings () |
| void | reapplyUnknownSettings () |
Additional Inherited Members | |
| Protected Member Functions inherited from nix::AbstractConfig | |
| AbstractConfig (StringMap initials={}) | |
| Protected Attributes inherited from nix::AbstractConfig | |
| StringMap | unknownSettings |
| using nix::EvalSettings::LookupPathHook = std::optional<SourcePath>(EvalState & state, std::string_view) |
Function used to interpret look path entries of a given scheme.
The argument is the non-scheme part of the lookup path entry (see LookupPathHooks below).
The return value is (a) whether the entry was valid, and, if so, what does it map to.
| using nix::EvalSettings::LookupPathHooks = std::map<std::string, fun<LookupPathHook>> |
Map from "scheme" to a LookupPathHook.
Given a lookup path value (i.e. either the whole thing, or after the <key>=) in the form of:
if <scheme> is a key in this map, then <arbitrary string> is passed to the hook that is the value in this map.
| const std::string & nix::EvalSettings::getCurrentSystem | ( | ) | const |
Implements the eval-system vs system defaulting logic described for eval-system.
| Setting<Strings> nix::EvalSettings::allowedUris |
| Setting<unsigned> nix::EvalSettings::bindingsUpdateLayerRhsSizeThreshold |
| Setting<bool> nix::EvalSettings::builtinsAbortOnWarn |
| Setting<bool> nix::EvalSettings::builtinsDebuggerOnWarn |
| Setting<bool> nix::EvalSettings::builtinsTraceDebugger |
| Setting<std::string> nix::EvalSettings::currentSystem |
| Setting<bool> nix::EvalSettings::enableImportFromDerivation |
| Setting<bool> nix::EvalSettings::enableNativeCode |
| Setting<std::filesystem::path> nix::EvalSettings::evalProfileFile |
| Setting<uint32_t> nix::EvalSettings::evalProfilerFrequency |
| Setting<EvalProfilerMode> nix::EvalSettings::evalProfilerMode |
| Setting<bool> nix::EvalSettings::ignoreExceptionsDuringTry |
| Setting<unsigned int> nix::EvalSettings::maxCallDepth |
| Setting<bool> nix::EvalSettings::pureEval |
| Setting<bool> nix::EvalSettings::restrictEval |
| Setting<bool> nix::EvalSettings::traceFunctionCalls |
| Setting<bool> nix::EvalSettings::traceImportFromDerivation |
| Setting<bool> nix::EvalSettings::traceVerbose |
| Setting<bool> nix::EvalSettings::useEvalCache |
| DeprecatedWarnSetting nix::EvalSettings::warnShortPathLiterals |