Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DerivationOutput Struct Reference

#include <derivations.hh>

Classes

struct  InputAddressed
struct  CAFixed
struct  CAFloating
struct  Deferred
struct  Impure

Public Types

typedef std::variant< InputAddressed, CAFixed, CAFloating, Deferred, ImpureRaw

Public Member Functions

 GENERATE_CMP (DerivationOutput, me->raw)
 MAKE_WRAPPER_CONSTRUCTOR (DerivationOutput)
 DerivationOutput ()=delete
std::optional< StorePathpath (const Store &store, std::string_view drvName, OutputNameView outputName) const
JSON toJSON (const Store &store, std::string_view drvName, OutputNameView outputName) const

Static Public Member Functions

static DerivationOutput fromJSON (const Store &store, std::string_view drvName, OutputNameView outputName, const JSON &json, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)

Public Attributes

Raw raw

Detailed Description

A single output of a BasicDerivation (and Derivation).

Constructor & Destructor Documentation

◆ DerivationOutput()

nix::DerivationOutput::DerivationOutput ( )
delete

Force choosing a variant

Member Function Documentation

◆ fromJSON()

DerivationOutput nix::DerivationOutput::fromJSON ( const Store & store,
std::string_view drvName,
OutputNameView outputName,
const JSON & json,
const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings )
static
Parameters
xpSettingsStop-gap to avoid globals during unit tests.

◆ path()

std::optional< StorePath > nix::DerivationOutput::path ( const Store & store,
std::string_view drvName,
OutputNameView outputName ) const
Note
when you use this function you should make sure that you're passing the right derivation name. When in doubt, you should use the safer interface provided by BasicDerivation::outputsAndOptPaths

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