Modules§
Structs§
- Store
Path - Represents a path in the Nix store (a direct child of STORE_DIR).
- Store
Path Name - Validated name of a store path.
- Store
Path Name Buf - An owned validated name of a store path.
- Store
Path Ref - Like StorePath, but with a
&StorePathNamefor the name.
Enums§
- Parse
Store Path Error - Errors that can occur when parsing a literal store path
- Parse
Store Path Name Error - Error returned when creating a
StorePathName.
Constants§
- DIGEST_
SIZE - DRV_EXT
- Extension for derivation names.
- ENCODED_
DIGEST_ SIZE - MAX_
NAME_ LEN - Maximum number of bytes in a store path name.
- STORE_
DIR - STORE_
DIR_ WITH_ SLASH
Functions§
- build_
ca_ path - This builds a store path for a content-addressed path (used for fetches and FODs).
- build_
output_ path - Builds an input-addressed store path.
- build_
text_ path - This builds a store path, for a CAHash::Text type store path. If you don’t want to have to pass the entire contents, you might want to use build_text_path_from_content_digest instead.
- build_
text_ path_ from_ content_ digest - This builds a store path, for a CAHash::Text type store path.
content_digestneeds to be the sha256 digest of the contents. If you have the contents as a byte slice, you can also use build_text_path. - 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.