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