aboutsummaryrefslogtreecommitdiff
path: root/src/nix/store-dump-path.md
blob: 4ef5635264ace873d4b44bf8e87a63bda155dbcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 NAR file containing the serialisation of the
store path *installable*. The NAR is written to standard output.

)""