nix3-hash-path - Man Page
print cryptographic hash of the NAR serialisation of a path
Warning
This program is experimental and its interface is subject to change.
Synopsis
nix hash path [option…] paths…
Options
--algohash-algoHash algorithm (
blake3,md5,sha1,sha256, orsha512).--base16Print the hash in base-16 format.
--base32Print the hash in base-32 (Nix-specific) format.
--base64Print the hash in base-64 format.
--formathash-formatHash format (
base16,nix32,base64,sri). Default:sri.--modefile-ingestion-methodHow to compute the hash of the input. One of:
nar(the default): Serialises the input as a Nix Archive and passes that to the hash function.flat: Assumes that the input is a single file and directly passes it to the hash function.
--sriPrint the hash in SRI format.
--typehash-algoHash algorithm (
blake3,md5,sha1,sha256, orsha512).
Miscellaneous global options
--helpShow usage information.
--offlineDisable substituters and consider all previously downloaded files up-to-date.
--optionname valueSet the Nix configuration setting name to value (overriding
nix.conf).--refreshConsider all previously downloaded files out-of-date.
--versionShow version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.