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/dump-path.cc | |
parent | 2cc02bbe7675acb4754b928b5c57fa316600e877 (diff) |
Add 'nix store' NAR-related manpages
Diffstat (limited to 'src/nix/dump-path.cc')
-rw-r--r-- | src/nix/dump-path.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nix/dump-path.cc b/src/nix/dump-path.cc index 63393ef9c..c4edc894b 100644 --- a/src/nix/dump-path.cc +++ b/src/nix/dump-path.cc @@ -11,14 +11,11 @@ struct CmdDumpPath : StorePathCommand return "serialise a store path to stdout in NAR format"; } - Examples examples() override + std::string doc() override { - return { - Example{ - "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" - }, - }; + return + #include "store-dump-path.md" + ; } void run(ref<Store> store, const StorePath & storePath) override |