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

Public Member Functions

 InstallableDerivedPath (ref< Store > store, DerivedPath &&derivedPath)
 
std::string what () const override
 
DerivedPathsWithInfo toDerivedPaths () override
 
std::optional< StorePathgetStorePath () override
 
- Public Member Functions inherited from nix::Installable
DerivedPathWithInfo toDerivedPath ()
 

Static Public Member Functions

static InstallableDerivedPath parse (ref< Store > store, std::string_view prefix, ExtendedOutputsSpec extendedOutputsSpec)
 
- 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)
 

Public Attributes

ref< Storestore
 
DerivedPath derivedPath
 

Member Function Documentation

◆ getStorePath()

std::optional< StorePath > nix::InstallableDerivedPath::getStorePath ( )
overridevirtual

Return a value only if this installable is a store path or a symlink to it.

Todo
should we move this to InstallableDerivedPath? It is only supposed to work there anyways. Can always downcast.

Reimplemented from nix::Installable.

◆ toDerivedPaths()

DerivedPathsWithInfo nix::InstallableDerivedPath::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.

◆ what()

std::string nix::InstallableDerivedPath::what ( ) const
overridevirtual

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: