2021-05-14 13:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-01 21:06:14 +00:00
|
|
|
, fetchFromGitLab
|
2019-03-16 05:56:57 +00:00
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-03-16 05:56:57 +00:00
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gettext
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-03-16 05:56:57 +00:00
|
|
|
, glib
|
2021-05-14 13:35:20 +00:00
|
|
|
, gtk4
|
|
|
|
, wayland
|
|
|
|
, libadwaita
|
2019-03-16 05:56:57 +00:00
|
|
|
, libpeas
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gsettings-desktop-schemas
|
2022-01-01 21:06:14 +00:00
|
|
|
, libportal-gtk4
|
2019-03-16 05:56:57 +00:00
|
|
|
, evolution-data-server
|
|
|
|
, libical
|
|
|
|
, librest
|
|
|
|
, json-glib
|
2021-09-27 19:59:55 +00:00
|
|
|
, itstool
|
2022-01-01 21:06:14 +00:00
|
|
|
, unstableGitUpdater
|
2019-03-16 05:56:57 +00:00
|
|
|
}:
|
2018-08-04 09:54:43 +00:00
|
|
|
|
2019-03-16 05:56:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-04 09:54:43 +00:00
|
|
|
pname = "gnome-todo";
|
2022-06-13 04:25:38 +00:00
|
|
|
version = "unstable-2022-06-12";
|
2018-08-04 09:54:43 +00:00
|
|
|
|
2022-01-01 21:06:14 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "gnome-todo";
|
2022-06-13 04:25:38 +00:00
|
|
|
rev = "ad4e15f0b58860caf8c6d497795b83b594a9c3e5";
|
|
|
|
sha256 = "HRufLoZou9ssQ/qoDG8anhOAtl8IYvFpyjq/XJlsotQ=";
|
2018-08-04 09:54:43 +00:00
|
|
|
};
|
|
|
|
|
2021-10-21 16:40:37 +00:00
|
|
|
patches = [
|
|
|
|
# fix build race bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667
|
|
|
|
(fetchpatch {
|
2021-11-09 09:04:55 +00:00
|
|
|
url = "https://cgit.freebsd.org/ports/plain/deskutils/gnome-todo/files/patch-src_meson.build?id=a4faaf6cf7835014b5f69a337b544ea4ee7f9655";
|
2022-06-08 02:45:44 +00:00
|
|
|
sha256 = "sha256-dio4Mg+5OGrnjtRAf4LwowO0sG50HRmlNR16cbDvEUY=";
|
2021-11-09 09:04:55 +00:00
|
|
|
extraPrefix = "";
|
|
|
|
name = "gnome-todo_meson-build.patch";
|
2021-10-21 16:40:37 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-08-04 09:54:43 +00:00
|
|
|
nativeBuildInputs = [
|
2019-03-16 05:56:57 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-03-16 05:56:57 +00:00
|
|
|
gettext
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
2021-09-27 19:59:55 +00:00
|
|
|
itstool
|
2018-08-04 09:54:43 +00:00
|
|
|
];
|
2019-03-16 05:56:57 +00:00
|
|
|
|
2018-08-04 09:54:43 +00:00
|
|
|
buildInputs = [
|
2019-03-16 05:56:57 +00:00
|
|
|
glib
|
2021-05-14 13:35:20 +00:00
|
|
|
gtk4
|
|
|
|
wayland # required by gtk header
|
|
|
|
libadwaita
|
2019-03-16 05:56:57 +00:00
|
|
|
libpeas
|
|
|
|
gnome-online-accounts
|
|
|
|
gsettings-desktop-schemas
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2021-05-14 13:35:20 +00:00
|
|
|
|
2018-08-04 09:54:43 +00:00
|
|
|
# Plug-ins
|
2022-01-01 21:06:14 +00:00
|
|
|
libportal-gtk4 # background
|
2021-05-14 13:35:20 +00:00
|
|
|
evolution-data-server # eds
|
2019-03-16 05:56:57 +00:00
|
|
|
libical
|
2021-05-14 13:35:20 +00:00
|
|
|
librest # todoist
|
|
|
|
json-glib # todoist
|
2018-08-04 09:54:43 +00:00
|
|
|
];
|
|
|
|
|
2021-05-14 13:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson/meson_post_install.py
|
|
|
|
'';
|
2018-08-04 09:54:43 +00:00
|
|
|
|
|
|
|
passthru = {
|
2022-01-01 21:06:14 +00:00
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-todo.git";
|
2018-08-04 09:54:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-04 09:54:43 +00:00
|
|
|
description = "Personal task manager for GNOME";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Todo";
|
2018-08-04 09:54:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2018-08-04 09:54:43 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|