nix3-store-dump-path(1)
π nix3-store-dump-path(1) β¨
okay bestie so this page is nix3-store-dump-path(1) from the General Commands Manual, and it's a whole mood. it's about yeeting a store path out as a NAR. let's get into it π
β οΈ Warning β fr fr, this program is experimental and its interface is subject to change. don't get too attached to the vibes, they might shift under you π
πΈ Name πΈ
nix store dump-path β serialise a store path to stdout in NAR format π
π¦ Synopsis π¦
nix store dump-path [optionβ¦] installablesβ¦
β¨ Examples β¨
- To get a NAR containing the GNU Hello package:
# nix store dump-path nixpkgs#hello > hello.nar
- To get a NAR from the binary cache
https://cache.nixos.org/:
# nix store dump-path --store https://cache.nixos.org/ \
/nix/store/vyrnv99qi410q82qp7nw7lcl37zmzaxd-glibc-2.25 > glibc.nar
like. look at that redirect. the shell ate and left no crumbs π₯
π Description π
so this command generates a Nix Archive (NAR) file that contains the serialisation of the store path installable. and where does that NAR go? straight to standard output, bestie. so pipe it or redirect it, your call, main character energy either way π
π Options π
--stdinβ read installables from the standard input. and ngl, there's no default installable applied here. none. zero. you gotta feed it π
π§ Common evaluation options π§
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname string β pass the string string as the argument name to Nix functions.--debuggerβ start an interactive environment if evaluation fails. it's giving "we can fix this together" π«Ά--eval-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories. spicy πΆοΈ--include/-Ipath β add path to search path entries used to resolve lookup paths.- this option may be given multiple times.
- paths added through
-Itake precedence over thenix-pathconfiguration setting and theNIX_PATHenvironment variable. periodt.
--override-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref.
π Common flake-related options π
--commit-lock-fileβ commit changes to the flake's lock file.--inputs-fromflake-url β use the inputs of the specified flake as registry entries.--no-registriesβ don't allow lookups in the flake registries.
DEPRECATED π use --no-use-registries instead.
--no-update-lock-fileβ do not allow any updates to the flake's lock file.--no-write-lock-fileβ do not write the flake's newly generated lock file.--output-lock-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-path flake-url β override a specific flake input (e.g.dwarffs/nixpkgs). the input path must not be empty. this implies--no-write-lock-file.--recreate-lock-fileβ recreate the flake's lock file from scratch.
DEPRECATED π use nix flake update instead.
--reference-lock-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-path β update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED π use nix flake update instead.
π Logging-related options π
--debugβ set the logging verbosity level todebug.--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. shhh π€«--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.--repairβ during evaluation, rewrite missing or corrupted files in the Nix store. during building, rebuild missing or corrupted store paths. the glow-up option π--versionβ show version information.
π Options that change the interpretation of installables π
--allβ apply the operation to every store path.--derivationβ operate on the store derivation rather than its outputs.--exprexpr β interpret installables as attribute paths relative to the Nix expression expr.--file/-ffile β interpret installables as attribute paths relative to the Nix expression stored in file. if file is the character-, then a Nix expression is read from standard input. implies--impure.--recursive/-rβ apply operation to closure of the specified paths.
Note π see man nix.conf for overriding configuration settings with command line flags.
and that's the whole thing, bestie π this page lives in the Nix manual under nix3-store-dump-path(1), and the footer's just the same name nix3-store-dump-path(1) echoing back at you like a little mirror. go forth and dump some paths π¦β¨π
π¦ 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