3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
96 lines
1.9 KiB
Nix
96 lines
1.9 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, fetchpatch
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, wrapGAppsHook
|
|
, gettext
|
|
, gnome
|
|
, glib
|
|
, gtk4
|
|
, wayland
|
|
, libadwaita
|
|
, libpeas
|
|
, gnome-online-accounts
|
|
, gsettings-desktop-schemas
|
|
, libportal-gtk4
|
|
, evolution-data-server
|
|
, libical
|
|
, librest
|
|
, json-glib
|
|
, itstool
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-todo";
|
|
version = "unstable-2022-06-12";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "gnome-todo";
|
|
rev = "ad4e15f0b58860caf8c6d497795b83b594a9c3e5";
|
|
sha256 = "HRufLoZou9ssQ/qoDG8anhOAtl8IYvFpyjq/XJlsotQ=";
|
|
};
|
|
|
|
patches = [
|
|
# fix build race bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667
|
|
(fetchpatch {
|
|
url = "https://cgit.freebsd.org/ports/plain/deskutils/gnome-todo/files/patch-src_meson.build?id=a4faaf6cf7835014b5f69a337b544ea4ee7f9655";
|
|
sha256 = "sha256-dio4Mg+5OGrnjtRAf4LwowO0sG50HRmlNR16cbDvEUY=";
|
|
extraPrefix = "";
|
|
name = "gnome-todo_meson-build.patch";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
python3
|
|
wrapGAppsHook
|
|
itstool
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
wayland # required by gtk header
|
|
libadwaita
|
|
libpeas
|
|
gnome-online-accounts
|
|
gsettings-desktop-schemas
|
|
gnome.adwaita-icon-theme
|
|
|
|
# Plug-ins
|
|
libportal-gtk4 # background
|
|
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 = {
|
|
updateScript = unstableGitUpdater {
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-todo.git";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|