Module nix_compat::store_path
source · Modules§
- utils 🔒
Structs§
- Represents a path in the Nix store (a direct child of STORE_DIR).
Enums§
- Errors that can occur when creating a content-addressed store path.
- Errors that can occur when parsing a literal store path
Constants§
Statics§
- NAME_CHARS contains
true
for bytes that are valid in store path names.
Functions§
- This builds a store path from a CAHash and a list of references.
- This builds an input-addressed store 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 takes an arbitrarily long sequence of bytes (usually a hash digest), and returns a sequence of bytes of length OUTPUT_SIZE.
- 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. - Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as string if successful.