nix3-nar-dump-path(1)
β¨ nix3-nar-dump-path(1) β¨
okay bestie, welcome to the Nix manual β this one's a page from the General Commands Manual and it's about nix nar dump-path, which is lowkey the most "put it in a box and mail it" command ever. π
β οΈ Warning β this program is experimental and its interface is subject to change. so like, don't build your whole personality around it, bestie. π«Ά
π Name π
nix nar dump-path β serialise a path to stdout in NAR format. that's it, that's the vibe. π¦
πΈ Synopsis πΈ
nix nar dump-path [optionβ¦] path
β¨ Examples β¨
- To serialise directory
fooas a Nix Archive (NAR):
# nix nar pack ./foo > foo.nar
(yes boo, the example says pack β I'm not arguing with the manpage, I'm just transcribing it, periodt. π
)
π¦ Description π¦
This command generates a Nix Archive (NAR) file containing the serialisation of path, which must contain only regular files, directories and symbolic links. The NAR is written to standard output.
so: point it at a thing, get NAR bytes on stdout, feel iconic. β¨ if your path has something spicy in it that isn't a regular file, a directory or a symlink, that's a no from the manpage. π
π Options π
π Logging-related options
--debugβ set the logging verbosity level to 'debug'. maximum yapping mode, we love to see it. π₯--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. give me everything. π--quietβ decrease the logging verbosity level. shhh era. π€«--verbose,-vβ increase the logging verbosity level. tell me more tell me more. π
β Miscellaneous global options
--helpβ show usage information. when in doubt, ask the command itself. π«Ά--offlineβ disable substituters and consider all previously downloaded files up-to-date. offline era, no cap. π--optionname value β set the Nix configuration setting name to value (overridingnix.conf). sneaky little override, we stan. π--refreshβ consider all previously downloaded files out-of-date. everything's stale, slay. π₯--versionβ show version information. who are you, what's your sign. π
Note β see man nix.conf for overriding configuration settings with command line flags. β¨
aaaand that's the whole page, bestie β no crumbs left, I promise. π
kisses, this has been nix3-nar-dump-path(1) from the Nix manual, part of the General Commands Manual set, and it's giving β¨experimentalβ¨ energy forever until they change it. byeeee π§π
π¦ 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