summary refs log tree commit diff
path: root/pkgs/tools/networking/xh/default.nix
diff options
context:
space:
mode:
authorD Anzorge <d.anzorge@gmail.com>2022-03-24 21:51:00 +0100
committerD Anzorge <d.anzorge@gmail.com>2022-03-26 16:14:32 +0100
commiteb7d3b1ddd0f66b508747615df1251b5add43435 (patch)
tree92d7f4a6616c38b779783cb7fc1f3b1bec23ecf7 /pkgs/tools/networking/xh/default.nix
parentff3afa5eb89c90d4ab3170c50062efbc5bc10a20 (diff)
downloadnixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar.gz
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar.bz2
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar.lz
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar.xz
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.tar.zst
nixpkgs-eb7d3b1ddd0f66b508747615df1251b5add43435.zip
xh: install manpages, docs
This corresponds to what the upstream's deb package contains
Diffstat (limited to 'pkgs/tools/networking/xh/default.nix')
-rw-r--r--pkgs/tools/networking/xh/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/networking/xh/default.nix b/pkgs/tools/networking/xh/default.nix
index 2a5708c8d05..13f470c327a 100644
--- a/pkgs/tools/networking/xh/default.nix
+++ b/pkgs/tools/networking/xh/default.nix
@@ -38,6 +38,11 @@ rustPlatform.buildRustPackage rec {
       --fish completions/xh.fish \
       --zsh completions/_xh
 
+    installManPage doc/xh.1
+    ln -s $out/share/man/man1/xh.1 $out/share/man/man1/xhs.1
+
+    install -m444 -Dt $out/share/doc/xh README.md CHANGELOG.md
+
     # https://github.com/ducaale/xh#xh-and-xhs
     ln -s $out/bin/xh $out/bin/xhs
   '';