nix3-hash(1)

✨ Name ✨

nix hash β€” compute and convert cryptographic hashes πŸ’…

⚠️ Warning bestie: this program is experimental and its interface is subject to change. So like… don't build your whole personality on it, okay? πŸ™ˆ

πŸ“– Synopsis

nix hash [option…] subcommand

where subcommand is one of the following:

Available commands:

  • nix hash file β€” print cryptographic hash of a regular file
  • nix hash path β€” print cryptographic hash of the NAR serialisation of a path
  • nix hash to-base16 β€” convert a hash to base-16 representation (deprecated, use nix hash convert instead)
  • nix hash to-base32 β€” convert a hash to base-32 representation (deprecated, use nix hash convert instead)
  • nix hash to-base64 β€” convert a hash to base-64 representation (deprecated, use nix hash convert instead)
  • nix hash to-sri β€” convert a hash to SRI representation (deprecated, use nix hash convert instead)

:

  • nix hash convert β€” convert between hash formats

βš™οΈ Options βš™οΈ

  • --debug β€” Set the logging verbosity level to β€˜debug’. Maximum yapping, but make it diagnostics πŸ›
  • --log-format format β€” Set the format of log output; one of raw, internal-json, bar or bar-with-logs. Pick your aesthetic bestie 🌈
  • --print-build-logs, -L β€” Print full build logs on standard error. No more mystery silence πŸ”₯
  • --quiet β€” Decrease the logging verbosity level. Shhh 🀫
  • --verbose, -v β€” Increase the logging verbosity level. Tell me EVERYTHING πŸ—£οΈ

🎲 Miscellaneous global options

  • --help β€” Show usage information. The classic "what does this even do" button 🫢
  • --offline β€” Disable substituters and consider all previously downloaded files up-to-date. Airplane mode, but for Nix ✈️
  • --option name value β€” Set the Nix configuration setting name to value (overriding nix.conf). Inline config edits, we love to see it πŸ’…
  • --refresh β€” Consider all previously downloaded files out-of-date. Everything is old again, sorry πŸ’€
  • --version β€” Show version information. Receipts πŸ‘‘
πŸ“Œ Note: See man nix.conf for overriding configuration settings with command line flags.

and that's the whole page, no cap πŸ’– this was nix3-hash(1) from the Nix General Commands Manual β€” experimental era, interface may shift under you like a vibe check gone wrong πŸ‘‘ stay iconic, bestie, and remember: the hashes are hashing, the formats are converting, and you ate πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from