Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::InstallableFlake Struct Reference
Inheritance diagram for nix::InstallableFlake:
nix::InstallableValue nix::Installable

Public Member Functions

 InstallableFlake (SourceExprCommand *cmd, ref< EvalState > state, FlakeRef &&flakeRef, std::string_view fragment, ExtendedOutputsSpec extendedOutputsSpec, Strings attrPaths, Strings prefixes, const flake::LockFlags &lockFlags)
 
std::string what () const override
 
std::vector< std::string > getActualAttrPaths ()
 
DerivedPathsWithInfo toDerivedPaths () override
 
std::pair< Value *, PosIdxtoValue (EvalState &state) override
 
std::vector< ref< eval_cache::AttrCursor > > getCursors (EvalState &state) override
 
std::shared_ptr< flake::LockedFlake > getLockedFlake () const
 
FlakeRef nixpkgsFlakeRef () const
 
- Public Member Functions inherited from nix::InstallableValue
 InstallableValue (ref< EvalState > state)
 
virtual ref< eval_cache::AttrCursorgetCursor (EvalState &state)
 
UnresolvedApp toApp (EvalState &state)
 
- Public Member Functions inherited from nix::Installable
DerivedPathWithInfo toDerivedPath ()
 
virtual std::optional< StorePathgetStorePath ()
 

Public Attributes

FlakeRef flakeRef
 
Strings attrPaths
 
Strings prefixes
 
ExtendedOutputsSpec extendedOutputsSpec
 
const flake::LockFlags & lockFlags
 
std::shared_ptr< flake::LockedFlake > _lockedFlake
 
- Public Attributes inherited from nix::InstallableValue
ref< EvalStatestate
 

Additional Inherited Members

- Static Public Member Functions inherited from nix::InstallableValue
static InstallableValuerequire (Installable &installable)
 
static ref< InstallableValuerequire (ref< Installable > installable)
 
- Static Public Member Functions inherited from nix::Installable
static std::vector< BuiltPathWithResultbuild (ref< Store > evalStore, ref< Store > store, Realise mode, const Installables &installables, BuildMode bMode=bmNormal)
 
static std::vector< std::pair< ref< Installable >, BuiltPathWithResult > > build2 (ref< Store > evalStore, ref< Store > store, Realise mode, const Installables &installables, BuildMode bMode=bmNormal)
 
static std::set< StorePathtoStorePathSet (ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables)
 
static std::vector< StorePathtoStorePaths (ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables)
 
static StorePath toStorePath (ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, ref< Installable > installable)
 
static std::set< StorePathtoDerivations (ref< Store > store, const Installables &installables, bool useDeriver=false)
 
static BuiltPaths toBuiltPaths (ref< Store > evalStore, ref< Store > store, Realise mode, OperateOn operateOn, const Installables &installables)
 
- Protected Member Functions inherited from nix::InstallableValue
std::optional< DerivedPathWithInfotrySinglePathToDerivedPaths (Value &v, const PosIdx pos, std::string_view errorCtx)
 

Member Function Documentation

◆ getCursors()

std::vector< ref< eval_cache::AttrCursor > > nix::InstallableFlake::getCursors ( EvalState & state)
overridevirtual

Get a cursor to every attrpath in getActualAttrPaths() that exists. However if none exists, throw an exception.

Reimplemented from nix::InstallableValue.

◆ toDerivedPaths()

DerivedPathsWithInfo nix::InstallableFlake::toDerivedPaths ( )
overridevirtual

Get the collection of derived pathswith info" that this Installable instalallable denotes.

This is the main method of this class

Implements nix::Installable.

◆ toValue()

std::pair< Value *, PosIdx > nix::InstallableFlake::toValue ( EvalState & state)
overridevirtual

Implements nix::InstallableValue.

◆ what()

std::string nix::InstallableFlake::what ( ) const
inlineoverridevirtual

What Installable is this?

Prints back valid CLI syntax that would result in this same installable. It doesn't need to be exactly what the user wrote, just something that means the same thing.

Implements nix::Installable.


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