Skip to main content

Module store_path

Module store_path 

Source
Expand description

Nix store path parsing and computation.

Structs§

StorePath
A validated Nix store path.

Enums§

StorePathError

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_len bytes via XOR folding.
compute_drv_path
Compute the .drv store path for a serialized derivation, without folding any references into the fingerprint.
compute_drv_path_with_refs
Compute the .drv store 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.