2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-26 04:04:25 +00:00
|
|
|
, fetchFromGitLab
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gettext
|
|
|
|
, gnome
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, wayland
|
|
|
|
, libadwaita
|
|
|
|
, libpeas
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gsettings-desktop-schemas
|
2022-01-26 04:04:25 +00:00
|
|
|
, libportal-gtk4
|
2021-05-20 23:08:51 +00:00
|
|
|
, evolution-data-server
|
|
|
|
, libical
|
|
|
|
, librest
|
|
|
|
, json-glib
|
2021-10-14 00:43:12 +00:00
|
|
|
, itstool
|
2022-01-26 04:04:25 +00:00
|
|
|
, unstableGitUpdater
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-todo";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "unstable-2022-03-11";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "gnome-todo";
|
2022-03-30 09:31:56 +00:00
|
|
|
rev = "07791399742366b4e3a6897430054d91df4594b4";
|
|
|
|
sha256 = "821KgxkkW4T6bdGuttAz9ao/WStM1QEfn4hY/b0d0jI=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
patches = [
|
|
|
|
# fix build race bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667
|
|
|
|
(fetchpatch {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://cgit.freebsd.org/ports/plain/deskutils/gnome-todo/files/patch-src_meson.build?id=a4faaf6cf7835014b5f69a337b544ea4ee7f9655";
|
|
|
|
sha256 = "sha256:0ihixyq72yhx6njij7bldsqb80x3y217yh6livknlf5r1wr3hakn";
|
|
|
|
extraPrefix = "";
|
|
|
|
name = "gnome-todo_meson-build.patch";
|
2021-10-28 06:52:43 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
2021-10-14 00:43:12 +00:00
|
|
|
itstool
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
wayland # required by gtk header
|
|
|
|
libadwaita
|
|
|
|
libpeas
|
|
|
|
gnome-online-accounts
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
|
|
|
|
# Plug-ins
|
2022-01-26 04:04:25 +00:00
|
|
|
libportal-gtk4 # background
|
2021-05-20 23:08:51 +00:00
|
|
|
evolution-data-server # eds
|
|
|
|
libical
|
|
|
|
librest # todoist
|
|
|
|
json-glib # todoist
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2022-01-26 04:04:25 +00:00
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-todo.git";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Personal task manager for GNOME";
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Todo";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|