git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #66962 from dtzWill/feature/khal-manpage

khal: build and install man page

commite710d4718b99464f57feb30cf6d581bc7de5e693 authorGabriel Ebner <gebner@gebner.org> dateTue 20 Aug 2019, 12:28 (7 years ago) parentecd99586aea2ab
1 file changed+18−2
pkgs/applications/misc/khal/default.nix+18−2
pkgs/applications/misc/khal/default.nix+18−2
@@ -1,4 +1,4 @@
1−{ stdenv, pkgs, python3 }:
1+{ stdenv, pkgs, python3, fetchpatch }:
22
33with python3.pkgs; buildPythonApplication rec {
44 pname = "khal";
@@ -9,6 +9,14 @@ with python3.pkgs; buildPythonApplication rec {
99 sha256 = "1r8bkgjwkh7i8ygvsv51h1cnax50sb183vafg66x5snxf3dgjl6l";
1010 };
1111
12+ # Include a khal.desktop file via upstream commit.
13+ # This patch should be removed when updating to the next version, probably.
14+ patches = [ (fetchpatch {
15+ name = "add-khal-dot-desktop.patch";
16+ url = "https://github.com/pimutils/khal/commit/1f93d238fec7c934dd2f8e48f54925d22130e3aa.patch";
17+ sha256 = "06skn3van7zd93348fc6axllx71ckkc7h2zljqlvwa339vca608c";
18+ }) ];
19+
1220 propagatedBuildInputs = [
1321 atomicwrites
1422 click
@@ -26,11 +34,19 @@ with python3.pkgs; buildPythonApplication rec {
2634 pkginfo
2735 freezegun
2836 ];
29− nativeBuildInputs = [ setuptools_scm ];
37+ nativeBuildInputs = [ setuptools_scm sphinx sphinxcontrib_newsfeed ];
3038 checkInputs = [ pytest ];
3139
3240 postInstall = ''
41+ # zsh completion
3342 install -D misc/__khal $out/share/zsh/site-functions/__khal
43+
44+ # man page
45+ make -C doc man
46+ install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1
47+
48+ # desktop
49+ install -Dm755 misc/khal.desktop -t $out/share/applications
3450 '';
3551
3652 doCheck = !stdenv.isAarch64;