tessen: refactor manpage installation

This commit is contained in:
Mon Aaraj 2022-08-31 19:45:34 +03:00
parent 98ef945bc3
commit 1473c495da

View file

@ -7,6 +7,7 @@
, wl-clipboard
, pass
, bemenu
, scdoc
}:
stdenvNoCC.mkDerivation rec {
@ -20,7 +21,7 @@ stdenvNoCC.mkDerivation rec {
sha256 = "sha256-U6obXpYzIprOJ+b3QiE+eDOq1s0DYiwM55qTga9/8TE=";
};
nativeBuildInputs = [ makeWrapper installShellFiles ];
nativeBuildInputs = [ makeWrapper installShellFiles scdoc ];
dontBuild = true;
@ -32,7 +33,9 @@ stdenvNoCC.mkDerivation rec {
'';
postInstall = ''
installManPage man/*
scdoc < man/tessen.1.scd > man/tessen.1
scdoc < man/tessen.5.scd > man/tessen.5
installManPage man/*.{1,5}
installShellCompletion --cmd tessen \
--bash completion/tessen.bash-completion \
--fish completion/tessen.fish-completion