aboutsummaryrefslogtreecommitdiff
path: root/src/nix/dump-path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/dump-path.cc')
-rw-r--r--src/nix/dump-path.cc11
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