zellij: add manpage

Add manpage to the `zellij` package.
This commit is contained in:
a-kenji 2022-03-11 23:42:57 +01:00 committed by GitHub
parent 3ff1b20af8
commit 7e0169e26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@
, openssl
, DiskArbitration
, Foundation
, mandown
, zellij
, testVersion
}:
@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-2QEDrxTz7I9hF+WfVKkGLXHWZjQ5by/zuO16NGOJSKk=";
nativeBuildInputs = [
mandown
installShellFiles
pkg-config
];
@ -43,6 +45,9 @@ rustPlatform.buildRustPackage rec {
'';
postInstall = ''
mandown docs/MANPAGE.md > zellij.1
installManPage zellij.1
installShellCompletion --cmd $pname \
--bash <($out/bin/zellij setup --generate-completion bash) \
--fish <($out/bin/zellij setup --generate-completion fish) \