2019-03-16 05:56:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gettext
|
|
|
|
, gnome3
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libpeas
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, evolution-data-server
|
|
|
|
, libxml2
|
|
|
|
, libsoup
|
|
|
|
, libical
|
|
|
|
, librest
|
|
|
|
, json-glib
|
|
|
|
}:
|
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";
|
|
|
|
version = "3.28.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-16 05:56:57 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-08-04 09:54:43 +00:00
|
|
|
sha256 = "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7";
|
|
|
|
};
|
|
|
|
|
2019-03-16 05:56:57 +00:00
|
|
|
patches = [
|
2019-09-17 23:08:00 +00:00
|
|
|
# fix build with libecal 2.0
|
2019-03-16 05:56:57 +00:00
|
|
|
(fetchpatch {
|
2019-09-17 23:08:00 +00:00
|
|
|
name = "gnome-todo-eds-libecal-2.0.patch";
|
|
|
|
url = "https://src.fedoraproject.org/rpms/gnome-todo/raw/bed44b8530f3c79589982e03b430b3a125e9bceb/f/gnome-todo-eds-libecal-2.0.patch";
|
|
|
|
sha256 = "1ghrz973skal36j90wm2z13m3panw983r6y0k7z9gpj5lxgz92mq";
|
2019-03-16 05:56:57 +00:00
|
|
|
})
|
|
|
|
];
|
2019-05-30 09:54:05 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
2019-03-16 05:56:57 +00:00
|
|
|
|
2018-08-04 09:54:43 +00:00
|
|
|
nativeBuildInputs = [
|
2019-03-16 05:56:57 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
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
|
|
|
|
gtk3
|
|
|
|
libpeas
|
|
|
|
gnome-online-accounts
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gnome3.adwaita-icon-theme
|
2018-08-04 09:54:43 +00:00
|
|
|
# Plug-ins
|
2019-03-16 05:56:57 +00:00
|
|
|
evolution-data-server
|
|
|
|
libxml2
|
|
|
|
libsoup
|
|
|
|
libical
|
|
|
|
librest
|
|
|
|
json-glib
|
2018-08-04 09:54:43 +00:00
|
|
|
];
|
|
|
|
|
2019-05-30 09:54:05 +00:00
|
|
|
# Fix parallel building: missing dependency from src/gtd-application.c
|
2019-05-30 10:02:38 +00:00
|
|
|
# Probably remove for 3.30+ https://gitlab.gnome.org/GNOME/gnome-todo/issues/170
|
2019-05-30 09:54:05 +00:00
|
|
|
preBuild = "ninja src/gtd-vcs-identifier.h";
|
2018-08-04 09:54:43 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|