nixpkgs/pkgs/desktops/gnome/apps/gnome-todo/default.nix

86 lines
1.6 KiB
Nix
Raw Normal View History

2021-05-14 15:35:20 +02:00
{ lib
, stdenv
2019-03-16 06:56:57 +01:00
, fetchurl
, fetchpatch
, meson
, ninja
2021-01-17 03:21:50 +01:00
, pkg-config
2019-03-16 06:56:57 +01:00
, python3
, wrapGAppsHook
, gettext
, gnome
2019-03-16 06:56:57 +01:00
, glib
2021-05-14 15:35:20 +02:00
, gtk4
, wayland
, libadwaita
2019-03-16 06:56:57 +01:00
, libpeas
, gnome-online-accounts
, gsettings-desktop-schemas
2021-05-14 15:35:20 +02:00
, libportal
2019-03-16 06:56:57 +01:00
, evolution-data-server
, libical
, librest
, json-glib
}:
2018-08-04 11:54:43 +02:00
2019-03-16 06:56:57 +01:00
stdenv.mkDerivation rec {
2018-08-04 11:54:43 +02:00
pname = "gnome-todo";
2021-05-14 15:35:20 +02:00
version = "40.0";
2018-08-04 11:54:43 +02:00
src = fetchurl {
2021-05-14 15:35:20 +02:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "aAl8lvBnXHFCZn0QQ0ToNHLdf8xTj+wKzb9gJrucobE=";
2018-08-04 11:54:43 +02:00
};
nativeBuildInputs = [
2019-03-16 06:56:57 +01:00
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
2019-03-16 06:56:57 +01:00
gettext
python3
wrapGAppsHook
2018-08-04 11:54:43 +02:00
];
2019-03-16 06:56:57 +01:00
2018-08-04 11:54:43 +02:00
buildInputs = [
2019-03-16 06:56:57 +01:00
glib
2021-05-14 15:35:20 +02:00
gtk4
wayland # required by gtk header
libadwaita
2019-03-16 06:56:57 +01:00
libpeas
gnome-online-accounts
gsettings-desktop-schemas
gnome.adwaita-icon-theme
2021-05-14 15:35:20 +02:00
2018-08-04 11:54:43 +02:00
# Plug-ins
2021-05-14 15:35:20 +02:00
libportal # background
evolution-data-server # eds
2019-03-16 06:56:57 +01:00
libical
2021-05-14 15:35:20 +02:00
librest # todoist
json-glib # todoist
2018-08-04 11:54:43 +02:00
];
2021-05-14 15:35:20 +02:00
postPatch = ''
chmod +x build-aux/meson/meson_post_install.py
patchShebangs build-aux/meson/meson_post_install.py
# https://gitlab.gnome.org/GNOME/gnome-todo/merge_requests/103
substituteInPlace src/meson.build \
--replace 'Gtk-3.0' 'Gtk-4.0'
'';
2018-08-04 11:54:43 +02:00
passthru = {
updateScript = gnome.updateScript {
2018-08-04 11:54:43 +02:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-08-04 11:54:43 +02:00
};
};
meta = with lib; {
2018-08-04 11:54:43 +02:00
description = "Personal task manager for GNOME";
homepage = "https://wiki.gnome.org/Apps/Todo";
2018-08-04 11:54:43 +02:00
license = licenses.gpl3Plus;
maintainers = teams.gnome.members;
2018-08-04 11:54:43 +02:00
platforms = platforms.linux;
};
}