![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <context.hh>
Classes | |
| struct | DrvDeep |
Public Types | |
| using | Opaque = SingleDerivedPath::Opaque |
| using | Built = SingleDerivedPath::Built |
| using | Raw = std::variant<Opaque, DrvDeep, Built> |
Public Member Functions | |
| GENERATE_CMP (NixStringContextElem, me->raw) | |
| MAKE_WRAPPER_CONSTRUCTOR (NixStringContextElem) | |
| std::string | to_string () const |
| std::string | display (const StoreDirConfig &store) const |
Static Public Member Functions | |
| static NixStringContextElem | parse (std::string_view s, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings) |
Public Attributes | |
| Raw | raw |
| using nix::NixStringContextElem::Built = SingleDerivedPath::Built |
Derivation output.
Encoded in the form !<output>!<drvPath>.
| using nix::NixStringContextElem::Opaque = SingleDerivedPath::Opaque |
Plain opaque path to some store object.
Encoded as just the path: <path>.
| std::string nix::NixStringContextElem::display | ( | const StoreDirConfig & | store | ) | const |
Render for use in error messages and other user-facing output.
Uses store paths and DerivedPath syntax, unlike to_string() which uses the internal encoding.
|
static |
Decode a context string, one of:
| xpSettings | Stop-gap to avoid globals during unit tests. |