2021-12-02 18:15:18 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitLab
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, makeWrapper
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtsvg
|
|
|
|
, qtlocation
|
|
|
|
, qtdeclarative
|
2022-02-13 16:42:11 +00:00
|
|
|
, qqc2-desktop-style
|
2021-12-02 18:15:18 +00:00
|
|
|
|
|
|
|
, kirigami2
|
|
|
|
, kdbusaddons
|
|
|
|
, ki18n
|
|
|
|
, kcalendarcore
|
|
|
|
, kconfigwidgets
|
|
|
|
, kwindowsystem
|
|
|
|
, kcoreaddons
|
|
|
|
, kcontacts
|
|
|
|
, kitemmodels
|
|
|
|
, kxmlgui
|
|
|
|
, knotifications
|
|
|
|
, kiconthemes
|
|
|
|
, kservice
|
|
|
|
, kmime
|
|
|
|
, kpackage
|
|
|
|
, eventviews
|
|
|
|
, calendarsupport
|
|
|
|
|
|
|
|
, akonadi
|
2021-12-27 06:04:13 +00:00
|
|
|
, akonadi-search
|
2021-12-02 18:15:18 +00:00
|
|
|
, akonadi-contacts
|
|
|
|
, akonadi-calendar-tools
|
|
|
|
, kdepim-runtime
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "kalendar";
|
2022-02-13 16:42:11 +00:00
|
|
|
version = "1.0.0";
|
2021-12-02 18:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "invent.kde.org";
|
|
|
|
owner = "pim";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-13 16:42:11 +00:00
|
|
|
sha256 = "sha256-kjtLVU+8wbIa7R6J1XOjuvS3AnJNngxNBCx24Dy1QzM=";
|
2021-12-02 18:15:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtquickcontrols2
|
|
|
|
qtsvg
|
|
|
|
qtlocation
|
|
|
|
qtdeclarative
|
2022-02-13 16:42:11 +00:00
|
|
|
qqc2-desktop-style
|
2021-12-02 18:15:18 +00:00
|
|
|
|
|
|
|
kirigami2
|
|
|
|
kdbusaddons
|
|
|
|
ki18n
|
|
|
|
kcalendarcore
|
|
|
|
kconfigwidgets
|
|
|
|
kwindowsystem
|
|
|
|
kcoreaddons
|
|
|
|
kcontacts
|
|
|
|
kitemmodels
|
|
|
|
kxmlgui
|
|
|
|
knotifications
|
|
|
|
kiconthemes
|
|
|
|
kservice
|
|
|
|
kmime
|
|
|
|
kpackage
|
|
|
|
eventviews
|
|
|
|
calendarsupport
|
|
|
|
|
2021-12-27 06:04:13 +00:00
|
|
|
akonadi-search
|
2021-12-02 18:15:18 +00:00
|
|
|
akonadi-contacts
|
|
|
|
akonadi-calendar-tools
|
2021-12-27 06:04:13 +00:00
|
|
|
kdepim-runtime
|
2021-12-02 18:15:18 +00:00
|
|
|
];
|
|
|
|
|
2021-12-27 06:04:13 +00:00
|
|
|
propagatedUserEnvPkgs = [ akonadi kdepim-runtime akonadi-search ];
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/kalendar" \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ akonadi kdepim-runtime akonadi-search ]}"
|
|
|
|
'';
|
2021-12-02 18:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A calendar application using Akonadi to sync with external services (Nextcloud, GMail, ...)";
|
|
|
|
homepage = "https://invent.kde.org/pim/kalendar/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|