.\" -*- 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 \f(CRnix hash path\fR - print cryptographic hash of the NAR serialisation of a path .SH Synopsis .LP \f(CRnix hash path\fR [\fIoption\fR\[u2026]] \fIpaths\fR\[u2026] .SH Options .IP "\(bu" 3 \fB\f(CR--algo\fR\fR \fIhash-algo\fR .IP Hash algorithm (\f(CRmd5\fR, \f(CRsha1\fR, \f(CRsha256\fR, or \f(CRsha512\fR). .IP "\(bu" 3 \fB\f(CR--base16\fR\fR .IP Print the hash in base-16 format. .IP "\(bu" 3 \fB\f(CR--base32\fR\fR .IP Print the hash in base-32 (Nix-specific) format. .IP "\(bu" 3 \fB\f(CR--base64\fR\fR .IP Print the hash in base-64 format. .IP "\(bu" 3 \fB\f(CR--format\fR\fR \fIhash-format\fR .IP Hash format (\f(CRbase16\fR, \f(CRnix32\fR, \f(CRbase64\fR, \f(CRsri\fR). Default: \f(CRsri\fR. .IP "\(bu" 3 \fB\f(CR--mode\fR\fR \fIfile-ingestion-method\fR .IP How to compute the hash of the input. One of: .RS .IP "\(bu" 3 \f(CRnar\fR (the default): Serialises the input as a \fBNix Archive\fR and passes that to the hash function. .IP "\(bu" 3 \f(CRflat\fR: Assumes that the input is a single file and \fBdirectly passes\fR it to the hash function. .RE .IP "\(bu" 3 \fB\f(CR--sri\fR\fR .IP Print the hash in SRI format. .IP "\(bu" 3 \fB\f(CR--type\fR\fR \fIhash-algo\fR .IP Hash algorithm (\f(CRmd5\fR, \f(CRsha1\fR, \f(CRsha256\fR, or \f(CRsha512\fR). .SS Logging-related options .IP "\(bu" 3 \fB\f(CR--debug\fR\fR .IP Set the logging verbosity level to \(oqdebug\(cq. .IP "\(bu" 3 \fB\f(CR--log-format\fR\fR \fIformat\fR .IP Set the format of log output; one of \f(CRraw\fR, \f(CRinternal-json\fR, \f(CRbar\fR or \f(CRbar-with-logs\fR. .IP "\(bu" 3 \fB\f(CR--print-build-logs\fR\fR / \f(CR-L\fR .IP Print full build logs on standard error. .IP "\(bu" 3 \fB\f(CR--quiet\fR\fR .IP Decrease the logging verbosity level. .IP "\(bu" 3 \fB\f(CR--verbose\fR\fR / \f(CR-v\fR .IP Increase the logging verbosity level. .SS Miscellaneous global options .IP "\(bu" 3 \fB\f(CR--help\fR\fR .IP Show usage information. .IP "\(bu" 3 \fB\f(CR--offline\fR\fR .IP Disable substituters and consider all previously downloaded files up-to-date. .IP "\(bu" 3 \fB\f(CR--option\fR\fR \fIname\fR \fIvalue\fR .IP Set the Nix configuration setting \fIname\fR to \fIvalue\fR (overriding \f(CRnix.conf\fR). .IP "\(bu" 3 \fB\f(CR--refresh\fR\fR .IP Consider all previously downloaded files out-of-date. .IP "\(bu" 3 \fB\f(CR--version\fR\fR .IP Show version information. .RS .LP \fBNote\fR .PP See \fB\f(CRman nix.conf\fR\fR for overriding configuration settings with command line flags. .RE