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

#include <realisation.hh>

Public Member Functions

std::string to_string () const
std::string render (const StoreDirConfig &store) const
bool operator== (const DrvOutput &) const =default
auto operator<=> (const DrvOutput &) const =default

Static Public Member Functions

static DrvOutput from_string (std::string_view)
static DrvOutput parse (const StoreDirConfig &store, std::string_view)

Public Attributes

StorePath drvPath
OutputName outputName

Detailed Description

A general Realisation key.

This is similar to a DerivedPath::Built, except it is only a single step: drvPath is a StorePath rather than a DerivedPath.

Member Function Documentation

◆ from_string()

DrvOutput nix::DrvOutput::from_string ( std::string_view )
static

Skips the store dir on the drvPath

◆ parse()

DrvOutput nix::DrvOutput::parse ( const StoreDirConfig & store,
std::string_view s )
static

Includes the store dir on drvPath

◆ render()

std::string nix::DrvOutput::render ( const StoreDirConfig & store) const

Includes the store dir on drvPath

◆ to_string()

std::string nix::DrvOutput::to_string ( ) const

Skips the store dir on the drvPath

Member Data Documentation

◆ drvPath

StorePath nix::DrvOutput::drvPath

The store path to the derivation

◆ outputName

OutputName nix::DrvOutput::outputName

The name of the output.


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