khal: build manpage via sphinxHook

+14 -12
+14 -12
pkgs/by-name/kh/khal/package.nix
··· 5 5 glibcLocales, 6 6 installShellFiles, 7 7 python3Packages, 8 + sphinxHook, 8 9 }: 9 10 10 11 python3Packages.buildPythonApplication rec { ··· 27 28 nativeBuildInputs = [ 28 29 glibcLocales 29 30 installShellFiles 31 + sphinxHook 32 + python3Packages.sphinx-rtd-theme 33 + python3Packages.sphinxcontrib-newsfeed 30 34 ]; 31 35 32 36 dependencies = with python3Packages; [ ··· 54 58 vdirsyncer 55 59 ]; 56 60 61 + outputs = [ 62 + "out" 63 + "doc" 64 + "man" 65 + ]; 66 + sphinxBuilders = [ 67 + "html" 68 + "man" 69 + ]; 70 + 57 71 postInstall = '' 58 72 # shell completions 59 73 installShellCompletion --cmd khal \ 60 74 --bash <(_KHAL_COMPLETE=bash_source $out/bin/khal) \ 61 75 --zsh <(_KHAL_COMPLETE=zsh_source $out/bin/khal) \ 62 76 --fish <(_KHAL_COMPLETE=fish_source $out/bin/khal) 63 - 64 - # man page 65 - PATH="${ 66 - python3Packages.python.withPackages ( 67 - ps: with ps; [ 68 - sphinx 69 - sphinxcontrib-newsfeed 70 - ] 71 - ) 72 - }/bin:$PATH" \ 73 - make -C doc man 74 - installManPage doc/build/man/khal.1 75 77 76 78 # .desktop file 77 79 install -Dm755 misc/khal.desktop -t $out/share/applications