Home Explore Blog Models CI



nix

src/nix/store-dump-path.md
8ca6059f92f43d3dae5b87ac48de139af33b0f681be6fb74000000030000028c
R""(

# Examples

* To get a NAR containing the GNU Hello package:

  ```console
  # nix store dump-path nixpkgs#hello > hello.nar
  ```

* To get a NAR from the binary cache https://cache.nixos.org/:

  ```console
  # nix store dump-path --store https://cache.nixos.org/ \
      /nix/store/7crrmih8c52r8fbnqb933dxrsp44md93-glibc-2.25 > glibc.nar
  ```

# Description

This command generates a [Nix Archive (NAR)][Nix Archive] file containing the serialisation of the
store path [*installable*](./nix.md#installables). The NAR is written to standard output.


)""

Chunks
e0e53a68 (1st chunk of `src/nix/store-dump-path.md`)
Title: `nix store dump-path` Command
Summary
This chunk describes the `nix store dump-path` command, which is used to generate a Nix Archive (NAR) file. It provides examples for dumping a GNU Hello package from `nixpkgs` and dumping a `glibc` store path from the `cache.nixos.org` binary cache. The command serializes the specified store path into a NAR file and outputs it to standard output.