Modules§
- utils 🔒
Structs§
Enums§
- Build
Store Path Error - Errors that can occur when creating a content-addressed store path.
- Error
- Errors that can occur when parsing a literal store path
Constants§
Statics§
- NAME_
CHARS 🔒 - NAME_CHARS contains
true
for bytes that are valid in store path names.
Functions§
- build_
ca_ path - This builds a store path from a CAHash and a list of references.
- build_
output_ path - This builds an input-addressed store path.
- build_
text_ path - This builds a store path, by calculating the text_hash_string of either a derivation or a literal text file that may contain references. If you don’t want to have to pass the entire contents, you might want to use build_ca_path instead.
- compress_
hash - compress_hash takes an arbitrarily long sequence of bytes (usually a hash digest), and returns a sequence of bytes of length OUTPUT_SIZE.
- hash_
placeholder - Nix placeholders (i.e. values returned by
builtins.placeholder
) are used to populate outputs with paths that must be string-replaced with the actual placeholders later, at runtime. - validate_
name 🔒 - Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as string if successful.
Type Aliases§
- Store
Path Ref - Like StorePath, but without a heap allocation for the name. Used by StorePath for parsing.