Module nix_compat::store_path::utils

source ·

Enums§

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 from fingerprint parts. Usually, that function is used from build_text_path and passed a “text hash string” (starting with “text:” as fingerprint), but other fingerprints starting with “output:” are also used in Derivation output path calculation.
  • 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.
  • This contains the Nix logic to create “text hash strings”, which are used in builtins.toFile, as well as in Derivation Path calculation.