Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
realisation.hh File Reference
#include <variant>
#include "hash.hh"
#include "path.hh"
#include "derived-path.hh"
#include <nlohmann/json_fwd.hpp>
#include "comparator.hh"
#include "signature/signer.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.