![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include "nix/expr/attr-set.hh"#include "nix/expr/eval-error.hh"#include "nix/expr/eval-profiler.hh"#include "nix/util/types.hh"#include "nix/expr/value.hh"#include "nix/expr/nixexpr.hh"#include "nix/expr/symbol-table.hh"#include "nix/util/configuration.hh"#include "nix/util/experimental-features.hh"#include "nix/util/position.hh"#include "nix/util/pos-table.hh"#include "nix/util/source-accessor.hh"#include "nix/expr/search-path.hh"#include "nix/expr/repl-exit-status.hh"#include "nix/util/ref.hh"#include "nix/expr/counter.hh"#include "nix/expr/config.hh"#include <boost/unordered/unordered_flat_map.hpp>#include <boost/unordered/concurrent_flat_map_fwd.hpp>#include <map>#include <optional>#include <functional>#include <span>#include "nix/expr/eval-inline.hh"Go to the source code of this file.
Classes | |
| class | nix::CallDepth |
| struct | nix::CallSite |
| struct | nix::PrimOp |
| struct | nix::Constant |
| struct | nix::Env |
| struct | nix::WhileTryingToUse |
| struct | nix::DebugTrace |
| struct | nix::StaticEvalSymbols |
| class | nix::EvalMemory |
| struct | nix::EvalMemory::Statistics |
| class | nix::EvalState |
| struct | nix::EvalState::Doc |
| struct | nix::DebugTraceStacker |
Typedefs | |
| using | nix::PrimOpFun = void(EvalState & state, CallSite callSite, Value * const * args, Value & v) |
| typedef std::map< std::string, Value *, std::less< std::string >, traceable_allocator< std::pair< const std::string, Value * > > > | nix::ValMap |
| typedef boost::unordered_flat_map< PosIdx, DocComment, std::hash< PosIdx > > | nix::DocCommentMap |
Functions | |
| std::ostream & | nix::operator<< (std::ostream &output, const PrimOp &primOp) |
| void | nix::printEnvBindings (const EvalState &es, const Expr &expr, const Env &env) |
| void | nix::printEnvBindings (const SymbolTable &st, const StaticEnv &se, const Env &env, int lvl) |
| std::unique_ptr< ValMap > | nix::mapStaticEnvBindings (const SymbolTable &st, const StaticEnv &se, const Env &env) |
| void | nix::copyContext (const Value &v, NixStringContext &context, const ExperimentalFeatureSettings &xpSettings) |
| std::string | nix::printValue (EvalState &state, Value &v) |
| std::ostream & | nix::operator<< (std::ostream &os, const ValueType t) |
| std::ostream & | nix::operator<< (std::ostream &os, WhileTryingToUse w) |
| ref< RegexCache > | nix::makeRegexCache () |
| std::string_view | nix::showType (ValueType type, bool withArticle) |
| std::string | nix::showType (const Value &v) |
| SourcePath | nix::resolveExprPath (SourcePath path, bool addDefaultNix) |
| bool | nix::isAllowedURI (std::string_view uri, const Strings &allowedUris) |
Variables | |
| constexpr size_t | nix::maxPrimOpArity = 8 |
| using nix::PrimOpFun = void(EvalState & state, CallSite callSite, Value * const * args, Value & v) |
Function that implements a primop.
| bool nix::isAllowedURI | ( | std::string_view | uri, |
| const Strings & | allowedPaths ) |
Whether a URI is allowed, assuming restrictEval is enabled
| SourcePath nix::resolveExprPath | ( | SourcePath | path, |
| bool | addDefaultNix = true ) |
If path refers to a directory, then append "/default.nix".
| addDefaultNix | Whether to append "/default.nix" after resolving symlinks. |
| std::string_view nix::showType | ( | ValueType | type, |
| bool | withArticle = true ) |
| withArticle | Whether to begin with an english article, e.g. "an integer" vs "integer". |
|
constexpr |
We put a limit on primop arity because it lets us use a fixed size array on the stack. 8 is already an impractical number of arguments. Use an attrset argument for such overly complicated functions.