mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
Merge pull request #66962 from dtzWill/feature/khal-manpage
khal: build and install man page
This commit is contained in:
commit
e710d4718b
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, pkgs, python3 }:
|
{ stdenv, pkgs, python3, fetchpatch }:
|
||||||
|
|
||||||
with python3.pkgs; buildPythonApplication rec {
|
with python3.pkgs; buildPythonApplication rec {
|
||||||
pname = "khal";
|
pname = "khal";
|
||||||
@ -9,6 +9,14 @@ with python3.pkgs; buildPythonApplication rec {
|
|||||||
sha256 = "1r8bkgjwkh7i8ygvsv51h1cnax50sb183vafg66x5snxf3dgjl6l";
|
sha256 = "1r8bkgjwkh7i8ygvsv51h1cnax50sb183vafg66x5snxf3dgjl6l";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Include a khal.desktop file via upstream commit.
|
||||||
|
# This patch should be removed when updating to the next version, probably.
|
||||||
|
patches = [ (fetchpatch {
|
||||||
|
name = "add-khal-dot-desktop.patch";
|
||||||
|
url = "https://github.com/pimutils/khal/commit/1f93d238fec7c934dd2f8e48f54925d22130e3aa.patch";
|
||||||
|
sha256 = "06skn3van7zd93348fc6axllx71ckkc7h2zljqlvwa339vca608c";
|
||||||
|
}) ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
atomicwrites
|
atomicwrites
|
||||||
click
|
click
|
||||||
@ -26,11 +34,19 @@ with python3.pkgs; buildPythonApplication rec {
|
|||||||
pkginfo
|
pkginfo
|
||||||
freezegun
|
freezegun
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm sphinx sphinxcontrib_newsfeed ];
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# zsh completion
|
||||||
install -D misc/__khal $out/share/zsh/site-functions/__khal
|
install -D misc/__khal $out/share/zsh/site-functions/__khal
|
||||||
|
|
||||||
|
# man page
|
||||||
|
make -C doc man
|
||||||
|
install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1
|
||||||
|
|
||||||
|
# desktop
|
||||||
|
install -Dm755 misc/khal.desktop -t $out/share/applications
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = !stdenv.isAarch64;
|
doCheck = !stdenv.isAarch64;
|
||||||
|
Loading…
Reference in New Issue
Block a user