diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-12-09 20:06:19 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-12-21 13:32:28 +0100 |
commit | c14ed3f8b2cbddb335227d2ff5188896e76b713f (patch) | |
tree | b4f737b93faf65477932c81242762f4f5a04bb0d /src/nix/store-dump-path.md | |
parent | 2cc02bbe7675acb4754b928b5c57fa316600e877 (diff) |
Add 'nix store' NAR-related manpages
Diffstat (limited to 'src/nix/store-dump-path.md')
-rw-r--r-- | src/nix/store-dump-path.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nix/store-dump-path.md b/src/nix/store-dump-path.md new file mode 100644 index 000000000..4ef563526 --- /dev/null +++ b/src/nix/store-dump-path.md @@ -0,0 +1,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. + +)"" |