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

#include <aterm.hh>

Concept definition

template<typename Inputs, typename Out>
// Regular `FullInputs` case takes the `Output` variant, or either of
// the input-addressing alternatives on their own
(std::is_same_v<Inputs, FullInputs>
&& (std::is_same_v<Out, Output> || std::is_same_v<Out, Output::InputAddressed>
|| std::is_same_v<Out, Output::Deferred>) )
// Masked hash is only for input addressing, with masked (`Deferred`) or unmasked (`InputAddressed`) outputs
|| (std::is_same_v<Inputs, masked::HashInputs>
&& (std::is_same_v<Out, Output::InputAddressed> || std::is_same_v<Out, Output::Deferred>) )

Detailed Description

The derivation shapes unparse below can print: with the inputs already flattened (FullInputs), or with them replaced by their masked hashes (masked::HashInputs), which is the form whose hash is an input address.

Note
This is a named concept rather than a requires clause written out at each declaration because two atomic constraints are only identical when formed from the same appearance of an expression; spelling the same condition twice would declare two distinct overloads.