.\" -*- mode: troff; coding: utf-8 -*- .TH "nix3-hash-path" "1" "" .RS .PP \fBWarning\fR .br This program is \fB\fBexperimental\fR\fR and its interface is subject to change. .RE .SH Name .LP \fCnix hash path\fR - print cryptographic hash of the NAR serialisation of a path .SH Synopsis .LP \fCnix hash path\fR [\fIoption\fR\[u2026]] \fIpaths\fR\[u2026] .SH Options .IP "\(bu" 3 \fB\fC--algo\fR\fR \fIhash-algo\fR .IP Hash algorithm (\fCmd5\fR, \fCsha1\fR, \fCsha256\fR, or \fCsha512\fR). .IP "\(bu" 3 \fB\fC--base16\fR\fR .IP Print the hash in base-16 format. .IP "\(bu" 3 \fB\fC--base32\fR\fR .IP Print the hash in base-32 (Nix-specific) format. .IP "\(bu" 3 \fB\fC--base64\fR\fR .IP Print the hash in base-64 format. .IP "\(bu" 3 \fB\fC--format\fR\fR \fIhash-format\fR .IP Hash format (\fCbase16\fR, \fCnix32\fR, \fCbase64\fR, \fCsri\fR). Default: \fCsri\fR. .IP "\(bu" 3 \fB\fC--mode\fR\fR \fIfile-ingestion-method\fR .IP How to compute the hash of the input. One of: .RS .IP "\(bu" 3 \fCnar\fR (the default): Serialises the input as an archive (following the \fB\fINix Archive Format\fR\fR) and passes that to the hash function. .IP "\(bu" 3 \fCflat\fR: Assumes that the input is a single file and directly passes it to the hash function; .RE .IP "\(bu" 3 \fB\fC--sri\fR\fR .IP Print the hash in SRI format. .IP "\(bu" 3 \fB\fC--type\fR\fR \fIhash-algo\fR .IP Hash algorithm (\fCmd5\fR, \fCsha1\fR, \fCsha256\fR, or \fCsha512\fR). .SS Logging-related options .IP "\(bu" 3 \fB\fC--debug\fR\fR .IP Set the logging verbosity level to \(oqdebug\(cq. .IP "\(bu" 3 \fB\fC--log-format\fR\fR \fIformat\fR .IP Set the format of log output; one of \fCraw\fR, \fCinternal-json\fR, \fCbar\fR or \fCbar-with-logs\fR. .IP "\(bu" 3 \fB\fC--print-build-logs\fR\fR / \fC-L\fR .IP Print full build logs on standard error. .IP "\(bu" 3 \fB\fC--quiet\fR\fR .IP Decrease the logging verbosity level. .IP "\(bu" 3 \fB\fC--verbose\fR\fR / \fC-v\fR .IP Increase the logging verbosity level. .SS Miscellaneous global options .IP "\(bu" 3 \fB\fC--help\fR\fR .IP Show usage information. .IP "\(bu" 3 \fB\fC--offline\fR\fR .IP Disable substituters and consider all previously downloaded files up-to-date. .IP "\(bu" 3 \fB\fC--option\fR\fR \fIname\fR \fIvalue\fR .IP Set the Nix configuration setting \fIname\fR to \fIvalue\fR (overriding \fCnix.conf\fR). .IP "\(bu" 3 \fB\fC--refresh\fR\fR .IP Consider all previously downloaded files out-of-date. .IP "\(bu" 3 \fB\fC--version\fR\fR .IP Show version information. .RS .LP \fBNote\fR .PP See \fB\fCman nix.conf\fR\fR for overriding configuration settings with command line flags. .RE