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

#include <masked.hh>

Public Types

using DrvHash = Hash
using CaOutputHashes = std::map<std::string, Hash>
using DeferredDrv = std::monostate
using Raw = std::variant<DrvHash, CaOutputHashes, DeferredDrv>

Public Member Functions

bool operator== (const MaskedHash &) const =default
 MAKE_WRAPPER_CONSTRUCTOR (MaskedHash)

Public Attributes

Raw raw

Detailed Description

The masked hashes of a derivation.

Each output is given a hash, although in practice only the content-addressed derivations (fixed-output or not) will have a different hash for each output.

Member Typedef Documentation

◆ CaOutputHashes

Known CA drv's output hashes, for fixed-output derivations whose output hashes are always known since they are fixed up-front.

◆ DeferredDrv

This derivation doesn't yet have known output hashes.

Either because itself is floating CA, or it (transtively) depends on a floating CA derivation.

◆ DrvHash

Single hash for the derivation

This is for an input-addressed derivation that doesn't transitively depend on any floating-CA derivations.


The documentation for this struct was generated from the following file:
  • libstore/include/nix/store/derivation/masked.hh