![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <derived-path.hh>
Public Member Functions | |
| const StorePath & | getBaseStorePath () const |
| bool | isDynamicDrvOutput () const |
| std::string | to_string (const StoreDirConfig &store) const |
| std::string | to_string_legacy (const StoreDirConfig &store) const |
| bool | operator== (const SingleDerivedPathBuilt &) const noexcept |
| std::strong_ordering | operator<=> (const SingleDerivedPathBuilt &) const noexcept |
Static Public Member Functions | |
| static SingleDerivedPathBuilt | parse (const StoreDirConfig &store, ref< const SingleDerivedPath > drvPath, OutputNameView outputs, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings) |
Public Attributes | |
| ref< const SingleDerivedPath > | drvPath |
| OutputName | output |
A single derived path that is built from a derivation
Built derived paths are pair of a derivation and an output name. They are evaluated by building the derivation, and then taking the resulting output path of the given output name.
| const StorePath & nix::SingleDerivedPath::Built::getBaseStorePath | ( | ) | const |
Get the store path this is ultimately derived from (by realising and projecting outputs).
Note that this is not a property of the store object being referred to, but just of this path — how we happened to be referring to that store object. In other words, this means this function breaks "referential transparency". It should therefore be used only with great care.
| bool nix::SingleDerivedPath::Built::isDynamicDrvOutput | ( | ) | const |
Whether this is the output of a dynamic derivation, i.e. the derivation path is itself Built.
|
static |
The caller splits on the separator, so it works for both variants.
| xpSettings | Stop-gap to avoid globals during unit tests. |
| std::string nix::SingleDerivedPath::Built::to_string | ( | const StoreDirConfig & | store | ) | const |
Uses ^ as the separator
| std::string nix::SingleDerivedPath::Built::to_string_legacy | ( | const StoreDirConfig & | store | ) | const |
Uses ! as the separator