Home Explore Blog CI



nix

1st chunk of `src/nix/store-dump-path.md`
755984da1158f045743dd23b0b10b3ba52dd540301ff35ba0000000100000234
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: Examples and Description
Summary
The `nix store dump-path` command generates a Nix Archive (NAR) file containing the serialization of a store path. The NAR is written to standard output. The text provides examples of how to use the command to obtain a NAR from Nixpkgs or a binary cache.