![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Types | |
| typedef std::vector< std::pair< Value *, std::string > > | AnnotatedValues |
| using | RunNix = void(const std::string & programName, OsStrings args) |
Public Member Functions | |
| AbstractNixRepl (ref< EvalState > state) | |
| virtual void | initEnv ()=0 |
| virtual ReplExitStatus | mainLoop ()=0 |
Static Public Member Functions | |
| static std::unique_ptr< AbstractNixRepl > | create (const LookupPath &lookupPath, ref< EvalState > state, fun< AnnotatedValues()> getValues, RunNix *runNix=nullptr) |
| static ReplExitStatus | runSimple (ref< EvalState > evalState, const ValMap &extraEnv) |
Public Attributes | |
| ref< EvalState > | state |
| const Bindings * | autoArgs |
| using nix::AbstractNixRepl::RunNix = void(const std::string & programName, OsStrings args) |
Run a nix executable
| programName | Name of the command, e.g. nix or nix-env. |
| args | arguments to the command. |
|
static |
| runNix | Function 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. |