@@ -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