nix3-store...-hash-part(1)
π nix3-store...-hash-part(1) π
okay bestie, grab your matcha because we're diving into the General Commands Manual and this one is a lil cutie. it's nix store path-from-hash-part, and yes the title is giving "why are there dots" but it's iconic, trust. π
β οΈ Warning β this program is experimental and its interface is subject to change. so like, don't build your whole personality on it, okay? π
β¨ Name β¨
nix store path-from-hash-part β get a store path from its hash part π¦
lowkey that's the whole job. she does one thing and she does it well.
πΈ Synopsis πΈ
nix store path-from-hash-part [optionβ¦] hash-part
π Examples π
- Return the full store path with the given hash part:
# nix store path-from-hash-part --store https://cache.nixos.org/ qbhyj3blxpw2i6pb7c6grc9185nbnpvy
/nix/store/qbhyj3blxpw2i6pb7c6grc9185nbnpvy-hello-2.10
not her turning 32 little characters into a whole entire path, main character energy fr fr π
π Description π
so here's the vibe: you hand her the hash part of a store path β that's the 32 characters that come right after /nix/store/ β and she hands you back the full store path. glow-up complete. β¨
where does this actually matter? it's primarily useful in the implementation of binary caches, because when something asks for a .narinfo file, the request only supplies the hash part. like this:
https://cache.nixos.org/qbhyj3blxpw2i6pb7c6grc9185nbnpvy.narinfo
see? just the hash part, no path, no vibe check. that's her moment. π«Ά
π Options π
Logging-related options
--debugβ set the logging verbosity level to βdebugβ. she's telling you everything, no secrets, we love an over-sharer. π--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-with-logs. pick your aesthetic bestie. π--print-build-logs,-Lβ print full build logs on standard error.--quietβ decrease the logging verbosity level. shhh. π€«--verbose,-vβ increase the logging verbosity level. louder!! π’
Miscellaneous global options
--helpβ show usage information. when in doubt, ask her directly. π--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, we ate and left absolutely no crumbs. πβ¨ this came from the General Commands Manual, page nix3-store...-hash-part(1) β no cap, go forth and resolve those hash parts. bye pookie, slay responsibly ππ
π¦ 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