|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <installable-value.hh>
Public Member Functions | |
| InstallableValue (ref< eval_cache::CachingEvaluator > evaluator) | |
| virtual std::pair< Value *, PosIdx > | toValue (EvalState &state)=0 |
| virtual std::vector< ref< eval_cache::AttrCursor > > | getCursors (EvalState &state) |
| virtual ref< eval_cache::AttrCursor > | getCursor (EvalState &state) |
| UnresolvedApp | toApp (EvalState &state) |
| Public Member Functions inherited from nix::Installable | |
| virtual std::string | what () const =0 |
| virtual DerivedPathsWithInfo | toDerivedPaths (EvalState &state)=0 |
| DerivedPathWithInfo | toDerivedPath (EvalState &state) |
| virtual std::optional< StorePath > | getStorePath () |
Static Public Member Functions | |
| static InstallableValue & | require (Installable &installable) |
| static ref< InstallableValue > | require (ref< Installable > installable) |
| Static Public Member Functions inherited from nix::Installable | |
| static std::vector< BuiltPathWithResult > | build (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, const Installables &installables, BuildMode bMode=bmNormal) |
| static std::vector< std::pair< ref< Installable >, BuiltPathWithResult > > | build2 (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, const Installables &installables, BuildMode bMode=bmNormal) |
| static std::set< StorePath > | toStorePathSet (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables) |
| static std::vector< StorePath > | toStorePaths (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables) |
| static StorePath | toStorePath (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, ref< Installable > installable) |
| static std::set< StorePath > | toDerivations (EvalState &state, ref< Store > store, const Installables &installables, bool useDeriver=false) |
| static BuiltPaths | toBuiltPaths (EvalState &state, ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables) |
Public Attributes | |
| ref< eval_cache::CachingEvaluator > | evaluator |
Protected Member Functions | |
| std::optional< DerivedPathWithInfo > | trySinglePathToDerivedPaths (EvalState &state, Value &v, const PosIdx pos, std::string_view errorCtx) |
An Installable which corresponds a Nix langauge value, in addition to a collection of derived paths.
|
virtual |
Get the first and most preferred cursor this Installable could refer to, or throw an exception if none exists.
|
virtual |
Get a cursor to each value this Installable could refer to. However if none exists, throw exception instead of returning empty vector.
Reimplemented in nix::InstallableFlake.
|
protected |
Handles either a plain path, or a string with a single string context elem in the right format. The latter case is handled by EvalState::coerceToDerivedPath(); see it for details.
| v | Value that is hopefully a string or path per the above. |
| pos | Position of value to aid with diagnostics. |
| errorCtx | Arbitrary message for use in potential error message when something is wrong with v. |