2020-12-09 21:06:19 +02:00
|
|
|
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
|
|
|
|
|
2024-04-10 00:07:39 +03:00
|
|
|
This command generates a [Nix Archive (NAR)][Nix Archive] file containing the serialisation of the
|
2022-12-01 02:57:02 +02:00
|
|
|
store path [*installable*](./nix.md#installables). The NAR is written to standard output.
|
2020-12-09 21:06:19 +02:00
|
|
|
|
2024-04-10 00:07:39 +03:00
|
|
|
[Nix Archive]: @docroot@/store/file-system-object/content-address.md#serial-nix-archive
|
|
|
|
|
2020-12-09 21:06:19 +02:00
|
|
|
)""
|