nix3-hash-path(1)

⚠️ big ol' warning bestie ⚠️

This program is experimental and its interface is subject to change. So like... don't build your whole personality around it, okay? πŸ’€


✨ Name ✨

nix hash path β€” print the cryptographic hash of the NAR serialisation of a path πŸŽ€

(yes it's nix3-hash-path(1) from the General Commands Manual, we're getting into it πŸ’…)


🌸 Synopsis 🌸

nix hash path [option…] paths…

πŸ’– Options πŸ’–

  • --algo hash-algo β€” which hash algorithm you're vibing with: blake3, md5, sha1, sha256, or sha512.
  • --base16 β€” print that hash in base-16 format.
  • --base32 β€” print that hash in base-32 (Nix-specific) format.
  • --base64 β€” print that hash in base-64 format.
  • --format hash-format β€” the hash format, one of base16, nix32, base64, sri. Default: sri.
  • --mode file-ingestion-method β€” how to actually compute the hash of your input. Pick one:
    • nar (the default): serialises the input as a Nix Archive and hands that over to the hash function.
    • flat: assumes the input is a single file and passes it straight to the hash function.
  • --sri β€” print the hash in SRI format.
  • --type hash-algo β€” hash algorithm again, bestie: blake3, md5, sha1, sha256, or sha512.
  • --debug β€” set the logging verbosity level to β€˜debug’.
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-with-logs.
  • --print-build-logs / -L β€” print full build logs on standard error.
  • --quiet β€” decrease the logging verbosity level.
  • --verbose / -v β€” increase the logging verbosity level.

🌈 Miscellaneous global options 🌈

  • --help β€” show usage information.
  • --offline β€” disable substituters and consider all previously downloaded files up-to-date.
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.conf).
  • --refresh β€” consider all previously downloaded files out-of-date.
  • --version β€” show version information.
πŸ“ Note β€” see man nix.conf for overriding configuration settings with command line flags. iykyk πŸ’œ

and that's the whole page, bestie!! πŸ¦‹ this was nix3-hash-path(1) straight out of the General Commands Manual β€” go forth, hash those paths, be the main character of your own Nix store πŸ‘‘βœ¨

πŸ“¦ where this page comes from