2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, fetchpatch
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-02-10 20:34:41 +00:00
|
|
|
, pkg-config
|
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
2022-02-10 20:34:41 +00:00
|
|
|
, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, clutter
|
2022-02-10 20:34:41 +00:00
|
|
|
, evolution-data-server
|
2020-04-24 23:36:52 +00:00
|
|
|
, folks
|
2022-02-10 20:34:41 +00:00
|
|
|
, geoclue2
|
2022-10-21 18:38:19 +00:00
|
|
|
, geocode-glib_2
|
2022-02-10 20:34:41 +00:00
|
|
|
, granite
|
|
|
|
, gtk3
|
2022-10-21 18:38:19 +00:00
|
|
|
, libchamplain_libsoup3
|
2022-02-10 20:34:41 +00:00
|
|
|
, libgee
|
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libical
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-calendar";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "6.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-23 02:10:13 +00:00
|
|
|
repo = "calendar";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-c2c8QNifBDzb0CelB72AIL4G694l6KCSXBjWIHrzZJo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
patches = [
|
|
|
|
# build: support evolution-data-server 3.46
|
|
|
|
# https://github.com/elementary/calendar/pull/758
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/calendar/commit/62c20e5786accd68b96c423b04e32c043e726cac.patch";
|
|
|
|
sha256 = "sha256-xatxoSwAIHiUA03vvBdM8HSW27vhPLvAxEuGK0gLiio=";
|
|
|
|
})
|
|
|
|
|
|
|
|
# GridDay: Fix day in month in grid with GLib 2.73.1+
|
|
|
|
# https://github.com/elementary/calendar/pull/763
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/calendar/commit/20b0983c85935bedef065b786ec8bbca55ba7d9e.patch";
|
|
|
|
sha256 = "sha256-Tw9uNqqRAC+vOp7EWzZVeDmZxt3hTGl9UIP21FcunqA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter
|
|
|
|
evolution-data-server
|
|
|
|
folks
|
|
|
|
geoclue2
|
2022-10-21 18:38:19 +00:00
|
|
|
geocode-glib_2
|
2020-04-24 23:36:52 +00:00
|
|
|
granite
|
|
|
|
gtk3
|
2022-10-21 18:38:19 +00:00
|
|
|
libchamplain_libsoup3
|
2020-04-24 23:36:52 +00:00
|
|
|
libgee
|
2021-09-22 15:38:15 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libical
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Desktop calendar app designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/calendar";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.calendar";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|