Expand description
Nix store path parsing and computation.
Structs§
- Store
Path - A validated Nix store path.
Enums§
Constants§
- DEFAULT_
STORE_ DIR - Default store directory.
- STORE_
PATH_ HASH_ LEN - Length of the hash part in a store path (32 chars in Nix base-32).
Functions§
- compress_
hash - Compress an arbitrary-length hash into
output_lenbytes via XOR folding. - compute_
drv_ path - Compute the
.drvstore path for a serialized derivation, without folding any references into the fingerprint. - compute_
drv_ path_ with_ refs - Compute the
.drvstore path including the derivation’s references in the fingerprint. - compute_
fixed_ output_ hash - Compute the output store path for a fixed-output derivation.
- compute_
output_ path - Compute an output store path from an inner hash hex string.
- compute_
store_ path_ from_ fingerprint - Hash a fingerprint string and produce a Nix store path.
- nix_
base32_ decode - Decode Nix’s custom base-32 encoding to bytes.
- nix_
base32_ encode - Encode bytes to Nix’s custom base-32 encoding.