Module derivation

Source

Re-exportsΒ§

pub use crate::nixhash::CAHash;
pub use crate::nixhash::NixHash;

ModulesΒ§

errors πŸ”’
Contains DerivationError, exported as crate::derivation::DerivationError
output πŸ”’
parse_error πŸ”’
This contains error and result types that can happen while parsing Derivations from ATerm.
parser πŸ”’
This module constructs a Derivation by parsing its ATerm serialization.
validate πŸ”’
write πŸ”’
This module implements the serialisation of derivations into the ATerm format used by C++ Nix.

StructsΒ§

Derivation
Output
References the derivation output.

EnumsΒ§

DerivationError
Errors that can occur during the validation of Derivation structs.
OutputError
Errors that can occur during the validation of a specific
ParserError

TraitsΒ§

DerivationAsyncExt πŸ”’

FunctionsΒ§

ca_kind_prefix πŸ”’
For a CAHash, return the β€œprefix” used for NAR purposes. For CAHash::Flat, this is an empty string, for CAHash::Nar, it’s β€œr:”. Panics for other CAHash kinds, as they’re not valid in a derivation context.
output_path_name πŸ”’
Calculate the name part of the store path of a derivation Output.