nix-super/src/nix/store-dump-path.md
John Ericson 1c75af969a Document store object content addressing & improve JSON format
The JSON format no longer uses the legacy ATerm `r:` prefixing nonsese,
but separate fields.

Progress on #9866

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-05-20 09:34:35 -04:00

652 B

R""(

Examples

  • To get a NAR containing the GNU Hello package:

    # nix store dump-path nixpkgs#hello > hello.nar
    
  • To get a NAR from the binary cache https://cache.nixos.org/:

    # 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) file containing the serialisation of the store path installable. The NAR is written to standard output.

)""