@@ -0,0 +1,94 @@
1+{ lib
2+, mkDerivation
3+, fetchFromGitLab
4+, cmake
5+, extra-cmake-modules
6+, makeWrapper
7+
8+, qtbase
9+, qtquickcontrols2
10+, qtsvg
11+, qtlocation
12+, qtdeclarative
13+
14+, kirigami2
15+, kdbusaddons
16+, ki18n
17+, kcalendarcore
18+, kconfigwidgets
19+, kwindowsystem
20+, kcoreaddons
21+, kcontacts
22+, kitemmodels
23+, kxmlgui
24+, knotifications
25+, kiconthemes
26+, kservice
27+, kmime
28+, kpackage
29+, eventviews
30+, calendarsupport
31+
32+, akonadi
33+, akonadi-contacts
34+, akonadi-calendar-tools
35+, kdepim-runtime
36+}:
37+
38+mkDerivation rec {
39+ pname = "kalendar";
40+ version = "0.3.1";
41+
42+ src = fetchFromGitLab {
43+ domain = "invent.kde.org";
44+ owner = "pim";
45+ repo = pname;
46+ rev = "v${version}";
47+ sha256 = "sha256-foG8j/MRbDZyzM9KmxEARfWUQXMz8ylQgersE1/gtnQ=";
48+ };
49+
50+ nativeBuildInputs = [
51+ cmake
52+ extra-cmake-modules
53+ makeWrapper
54+ ];
55+
56+ buildInputs = [
57+ qtbase
58+ qtquickcontrols2
59+ qtsvg
60+ qtlocation
61+ qtdeclarative
62+
63+ kirigami2
64+ kdbusaddons
65+ ki18n
66+ kcalendarcore
67+ kconfigwidgets
68+ kwindowsystem
69+ kcoreaddons
70+ kcontacts
71+ kitemmodels
72+ kxmlgui
73+ knotifications
74+ kiconthemes
75+ kservice
76+ kmime
77+ kpackage
78+ eventviews
79+ calendarsupport
80+
81+ akonadi-contacts
82+ akonadi-calendar-tools
83+ ];
84+
85+ propagatedUserEnvPkgs = [ akonadi kdepim-runtime ];
86+
87+ meta = with lib; {
88+ description = "A calendar application using Akonadi to sync with external services (Nextcloud, GMail, ...)";
89+ homepage = "https://invent.kde.org/pim/kalendar/";
90+ license = licenses.gpl3Plus;
91+ maintainers = with maintainers; [ chuangzhu ];
92+ platforms = platforms.linux;
93+ };
94+}