nix3-hash-path(1) General Commands Manual nix3-hash-path(1) Warning This program is experimental and its interface is subject to change. Name nix hash path - print cryptographic hash of the NAR serialisation of a path Synopsis nix hash path [option] paths Options o --algo hash-algo Hash algorithm (md5, sha1, sha256, or sha512). o --base16 Print the hash in base-16 format. o --base32 Print the hash in base-32 (Nix-specific) format. o --base64 Print the hash in base-64 format. o --format hash-format Hash format (base16, nix32, base64, sri). Default: sri. o --mode file-ingestion-method How to compute the hash of the input. One of: o nar (the default): Serialises the input as an archive (following the Nix Archive Format) and passes that to the hash function. o flat: Assumes that the input is a single file and directly passes it to the hash function; o --sri Print the hash in SRI format. o --type hash-algo Hash algorithm (md5, sha1, sha256, or sha512). Logging-related options o --debug Set the logging verbosity level to `debug'. o --log-format format Set the format of log output; one of raw, internal-json, bar or bar-with-logs. o --print-build-logs / -L Print full build logs on standard error. o --quiet Decrease the logging verbosity level. o --verbose / -v Increase the logging verbosity level. Miscellaneous global options o --help Show usage information. o --offline Disable substituters and consider all previously downloaded files up-to-date. o --option name value Set the Nix configuration setting name to value (overriding nix.conf). o --refresh Consider all previously downloaded files out-of-date. o --version Show version information. Note See man nix.conf for overriding configuration settings with command line flags. nix3-hash-path(1)