Home Explore Blog Models CI



nix

1st chunk of `src/nix/store-dump-path.md`
e0e53a683ecd9c934a117c542c8089cfdd2fe460d36119440000000100000234
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.


)""

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.