![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <get-drvs.hh>
Public Types | |
| typedef std::map< std::string, std::optional< StorePath >, std::less<> > | Outputs |
Public Member Functions | |
| PackageInfo (EvalState &state) | |
| PackageInfo (EvalState &state, std::string attrPath, const Bindings *attrs) | |
| PackageInfo (EvalState &state, ref< Store > store, const std::string &drvPathWithOutputs) | |
| std::string | queryName () const |
| std::string | querySystem () const |
| std::optional< StorePath > | queryDrvPath () const |
| StorePath | requireDrvPath () const |
| StorePath | queryOutPath () const |
| std::string | queryOutputName () const |
| Outputs | queryOutputs (bool withPaths=true, bool onlyOutputsToInstall=false) |
| StringSet | queryMetaNames () |
| Value * | queryMeta (const std::string &name) |
| std::string | queryMetaString (const std::string &name) |
| NixInt | queryMetaInt (const std::string &name, NixInt def) |
| NixFloat | queryMetaFloat (const std::string &name, NixFloat def) |
| bool | queryMetaBool (const std::string &name, bool def) |
| void | setMeta (const std::string &name, Value *v) |
| void | setName (const std::string &s) |
| void | setDrvPath (StorePath path) |
| void | setOutPath (StorePath path) |
| void | setFailed () |
| bool | hasFailed () |
Public Attributes | |
| std::string | attrPath |
A "parsed" package attribute set.
| PackageInfo::Outputs nix::PackageInfo::queryOutputs | ( | 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.
| std::string nix::PackageInfo::attrPath |
path towards the derivation