Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
realisation.hh File Reference
#include <variant>
#include "lix/libutil/hash.hh"
#include "lix/libutil/json-fwd.hh"
#include "lix/libstore/path.hh"
#include "lix/libstore/derived-path.hh"
#include "lix/libutil/comparator.hh"
#include "lix/libstore/crypto.hh"

Go to the source code of this file.

Classes

struct  nix::DrvOutput
struct  nix::Realisation
struct  nix::OpaquePath
struct  nix::RealisedPath
class  nix::MissingRealisation

Typedefs

typedef std::map< OutputName, Realisationnix::SingleDrvOutputs
typedef std::map< DrvOutput, Realisationnix::DrvOutputs

Functions

SingleDrvOutputs nix::filterDrvOutputs (const OutputsSpec &wanted, SingleDrvOutputs &&outputs)

Typedef Documentation

◆ DrvOutputs

typedef std::map<DrvOutput, Realisation> nix::DrvOutputs

Collection type for multiple derivations' outputs' Realisations.

DrvOutput is used because in general the derivations are not all the same, so we need to identify firstly which derivation, and secondly which output of that derivation.

◆ SingleDrvOutputs

typedef std::map<OutputName, Realisation> nix::SingleDrvOutputs

Collection type for a single derivation's outputs' Realisations.

Since these are the outputs of a single derivation, we know the output names are unique so we can use them as the map key.

Function Documentation

◆ filterDrvOutputs()

SingleDrvOutputs nix::filterDrvOutputs ( const OutputsSpec & ,
SingleDrvOutputs &&  )

Filter a SingleDrvOutputs to include only specific output names

Moves the outputs input.