2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-29 16:46: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
|
2021-09-22 15:38:15 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
2021-09-22 15:38:15 +00:00
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, clutter-gtk
|
|
|
|
, evolution-data-server
|
2020-04-24 23:36:52 +00:00
|
|
|
, granite
|
2021-09-22 15:38:15 +00:00
|
|
|
, geoclue2
|
2023-04-29 16:46:19 +00:00
|
|
|
, geocode-glib_2
|
2021-09-22 15:38:15 +00:00
|
|
|
, gtk3
|
2023-04-29 16:46:19 +00:00
|
|
|
, libchamplain_libsoup3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libgee
|
2021-09-22 15:38:15 +00:00
|
|
|
, libhandy
|
|
|
|
, libical
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-22 15:38:15 +00:00
|
|
|
pname = "elementary-tasks";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "6.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2021-12-19 01:06:50 +00:00
|
|
|
repo = "tasks";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-b8KUlfpZxRFDiBjgrV/4XicCcEw2fWaN78NaOq6jQBk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
patches = [
|
|
|
|
# Port to libsoup 3
|
|
|
|
# https://github.com/elementary/tasks/pull/345
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/tasks/commit/22e0d18693932e9eea3d2a22329f845575ce26e6.patch";
|
|
|
|
sha256 = "sha256-nLJlKf4L7G12ZnCo4wezyMRyeAf+Tf0OGHyT8I1ZuDA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 = [
|
2021-09-22 15:38:15 +00:00
|
|
|
clutter-gtk
|
|
|
|
evolution-data-server
|
2020-04-24 23:36:52 +00:00
|
|
|
granite
|
2021-09-22 15:38:15 +00:00
|
|
|
geoclue2
|
2023-04-29 16:46:19 +00:00
|
|
|
geocode-glib_2
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk3
|
2023-04-29 16:46:19 +00:00
|
|
|
libchamplain_libsoup3
|
2020-04-24 23:36:52 +00:00
|
|
|
libgee
|
2021-09-22 15:38:15 +00:00
|
|
|
libhandy
|
|
|
|
libical
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/elementary/tasks";
|
|
|
|
description = "Synced tasks and reminders on elementary OS";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
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.tasks";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|