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

#include <masked.hh>

Classes

struct  Drvs

Public Types

using DrvMap = std::map<Hash, std::set<OutputName, std::less<>>>

Public Member Functions

bool operator== (const HashInputs &) const =default

Public Attributes

StorePathSet srcs
struct nix::derivation::masked::HashInputs::Drvs drvs

Detailed Description

Inputs in the intermediate form used to compute the masked hash: input derivations are identified by their masked hash rather than by store path.

Hash::operator<=> compares bytes left-to-right, which matches base16-lexicographic order (hex encoding is monotonic per byte), so std::map<Hash, ...> gives the correct ATerm key ordering directly.

Member Typedef Documentation

◆ DrvMap

using nix::derivation::masked::HashInputs::DrvMap = std::map<Hash, std::set<OutputName, std::less<>>>

No DerivedPathMap involved: the masked hash is only ever computed after dynamic inputs are resolved away, so each input derivation maps to a plain set of output names.


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