Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::AbstractNixRepl Struct Referenceabstract
Inheritance diagram for nix::AbstractNixRepl:
nix::NixRepl

Public Types

typedef std::vector< std::pair< Value *, std::string > > AnnotatedValues
 
using RunNix = void(Path program, const Strings & args, const std::optional<std::string> & input)
 

Public Member Functions

 AbstractNixRepl (ref< EvalState > state)
 
virtual void initEnv ()=0
 
virtual ReplExitStatus mainLoop ()=0
 

Static Public Member Functions

static std::unique_ptr< AbstractNixReplcreate (const LookupPath &lookupPath, nix::ref< Store > store, ref< EvalState > state, std::function< AnnotatedValues()> getValues, RunNix *runNix=nullptr)
 
static ReplExitStatus runSimple (ref< EvalState > evalState, const ValMap &extraEnv)
 

Public Attributes

ref< EvalStatestate
 
BindingsautoArgs
 

Member Function Documentation

◆ create()

std::unique_ptr< AbstractNixRepl > nix::AbstractNixRepl::create ( const LookupPath & lookupPath,
nix::ref< Store > store,
ref< EvalState > state,
std::function< AnnotatedValues()> getValues,
RunNix * runNix = nullptr )
static
Parameters
runNixFunction to run the nix CLI to support various :<something> commands. Optional; if not provided, everything else will still work fine, but those commands won't.

The documentation for this struct was generated from the following files: