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
# 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 🧚

  • --arg name expr β€” pass the value expr as the argument name to Nix functions.
  • --arg-from-file name path β€” pass the contents of file path as the argument name to Nix functions.
  • --arg-from-stdin name β€” pass the contents of stdin as the argument name to Nix functions.
  • --argstr name 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-store store-url β€” the URL of the Nix store to use for evaluation, i.e. to store derivations (.drv files) and inputs referenced by them.
  • --impure β€” allow access to mutable paths and repositories. spicy 🌢️
  • --include / -I path β€” add path to search path entries used to resolve lookup paths.
    • this option may be given multiple times.
    • paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable. periodt.
  • --override-flake original-ref resolved-ref β€” override the flake registries, redirecting original-ref to resolved-ref.

  • --commit-lock-file β€” commit changes to the flake's lock file.
  • --inputs-from flake-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-file flake-lock-path β€” write the given lock file instead of flake.lock within the top-level flake.
  • --override-input input-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-file flake-lock-path β€” read the given lock file instead of flake.lock within the top-level flake.
  • --update-input input-path β€” update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED πŸ’€ use nix flake update instead.

  • --debug β€” set the logging verbosity level to debug.
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-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.
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.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.
  • --expr expr β€” interpret installables as attribute paths relative to the Nix expression expr.
  • --file / -f file β€” 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