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
-
--base16Print the hash in base-16 format. -
--base32Print the hash in base-32 (Nix-specific) format. -
--base64Print the hash in base-64 format. -
--sriPrint the hash in SRI format. -
--typehash-algo hash algorithm ('md5', 'sha1', 'sha256', or 'sha512')
Logging-related options:
-
--debugSet the logging verbosity level to 'debug'. -
--log-formatformat Set the format of log output; one ofraw,internal-json,bar,bar-with-logs,multilineormultiline-with-logs. -
--print-build-logs/-LPrint full build logs on standard error. -
--quietDecrease the logging verbosity level. -
--verbose/-vIncrease the logging verbosity level.
Miscellaneous global options:
-
--helpShow usage information. -
--offlineDisable substituters and consider all previously downloaded files up-to-date. -
--optionname value Set the Lix configuration setting name to value (overridingnix.conf). -
--refreshConsider all previously downloaded files out-of-date. -
--versionShow version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.