Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DrvInfo Struct Reference
Collaboration diagram for nix::DrvInfo:
[legend]

Public Types

typedef std::map< std::string, std::optional< StorePath > > Outputs
 

Public Member Functions

 DrvInfo (std::string attrPath, Bindings *attrs)
 
std::string queryName (EvalState &state)
 
std::string querySystem (EvalState &state)
 
std::optional< StorePathqueryDrvPath (EvalState &state)
 
StorePath requireDrvPath (EvalState &state)
 
StorePath queryOutPath (EvalState &state)
 
std::string queryOutputName (EvalState &state)
 
Outputs queryOutputs (EvalState &state, bool withPaths=true, bool onlyOutputsToInstall=false)
 
StringSet queryMetaNames (EvalState &state)
 
ValuequeryMeta (EvalState &state, const std::string &name)
 
std::string queryMetaString (EvalState &state, const std::string &name)
 
NixInt queryMetaInt (EvalState &state, const std::string &name, NixInt def)
 
bool queryMetaBool (EvalState &state, const std::string &name, bool def)
 
void setMeta (EvalState &state, const std::string &name, Value *v)
 
void setName (const std::string &s)
 
void setDrvPath (StorePath path)
 
void setOutPath (StorePath path)
 
void setFailed ()
 
bool hasFailed ()
 

Static Public Member Functions

static kj::Promise< Result< DrvInfo > > create (ref< Store > store, const std::string &drvPathWithOutputs)
 

Public Attributes

std::string attrPath
 

Member Function Documentation

◆ queryOutputs()

DrvInfo::Outputs nix::DrvInfo::queryOutputs ( EvalState & state,
bool withPaths = true,
bool onlyOutputsToInstall = false )

Return the unordered map of output names to (optional) output paths. The "outputs to install" are determined by meta.outputsToInstall.

Member Data Documentation

◆ attrPath

std::string nix::DrvInfo::attrPath

path towards the derivation


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