Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::derivation::Output Struct Reference

#include <output.hh>

Classes

struct  InputAddressed
struct  CAFixed
struct  CAFloating
struct  Deferred
struct  Impure

Public Types

typedef std::variant< InputAddressed, CAFixed, CAFloating, Deferred, Impure > Raw

Public Member Functions

bool operator== (const Output &) const =default
auto operator<=> (const Output &) const =default
 MAKE_WRAPPER_CONSTRUCTOR (Output)
 Output ()=delete
std::optional< StorePath > path (const StoreDirConfig &store, std::string_view drvName, OutputNameView outputName) const

Public Attributes

Raw raw

Detailed Description

A single output of a Basic (and Full) derivation.

Constructor & Destructor Documentation

◆ Output()

nix::derivation::Output::Output ( )
delete

Force choosing a variant

Member Function Documentation

◆ path()

std::optional< StorePath > nix::derivation::Output::path ( const StoreDirConfig & 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:
  • libstore/include/nix/store/derivation/output.hh
  • libstore/derivation/output.cc