Man page - nix3-hash-file(1)

Packages contains this manual

Manual

nix3-hash-file

Name
Synopsis
Options
Logging-related options
Miscellaneous global options

Warning
This program is experimental and its interface is subject to change.

Name

nix hash file - print cryptographic hash of a regular file

Synopsis

nix hash file [ option …] paths …

Options

β€’

--base16

Print the hash in base-16 format.

β€’

--base32

Print the hash in base-32 (Nix-specific) format.

β€’

--base64

Print the hash in base-64 format.

β€’

--sri

Print the hash in SRI format.

β€’

--type hash-algo

Hash algorithm (md5, sha1, sha256, or sha512).

Logging-related options

β€’

--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.