nix3-hash-path(1)
β οΈ big ol' warning bestie β οΈ
This program is experimental and its interface is subject to change. So like... don't build your whole personality around it, okay? π
β¨ Name β¨
nix hash path β print the cryptographic hash of the NAR serialisation of a path π
(yes it's nix3-hash-path(1) from the General Commands Manual, we're getting into it π
)
πΈ Synopsis πΈ
nix hash path [optionβ¦] pathsβ¦
π Options π
--algohash-algo β which hash algorithm you're vibing with:blake3,md5,sha1,sha256, orsha512.--base16β print that hash in base-16 format.--base32β print that hash in base-32 (Nix-specific) format.--base64β print that hash in base-64 format.--formathash-format β the hash format, one ofbase16,nix32,base64,sri. Default:sri.--modefile-ingestion-method β how to actually compute the hash of your input. Pick one:nar(the default): serialises the input as a Nix Archive and hands that over to the hash function.flat: assumes the input is a single file and passes it straight to the hash function.
--sriβ print the hash in SRI format.--typehash-algo β hash algorithm again, bestie:blake3,md5,sha1,sha256, orsha512.
π«Ά Logging-related options π«Ά
--debugβ set the logging verbosity level to βdebugβ.--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-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.--optionname value β set the Nix configuration setting name to value (overridingnix.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. iykyk π
and that's the whole page, bestie!! π¦ this was nix3-hash-path(1) straight out of the General Commands Manual β go forth, hash those paths, be the main character of your own Nix store πβ¨
π¦ where this page comes from
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms