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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
1.9 KiB
Nix
Raw Normal View History

2021-05-14 13:35:20 +00:00
{ lib
, stdenv
, 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
, 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
, libportal-gtk4
2019-03-16 05:56:57 +00:00
, evolution-data-server
, libical
, librest
, json-glib
, itstool
, 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";
version = "unstable-2022-06-12";
2018-08-04 09:54:43 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "gnome-todo";
rev = "ad4e15f0b58860caf8c6d497795b83b594a9c3e5";
sha256 = "HRufLoZou9ssQ/qoDG8anhOAtl8IYvFpyjq/XJlsotQ=";
2018-08-04 09:54:43 +00:00
};
gnome-todo: patch build race away Only sometimes on a server with 12 cpu cores I get the below error Seems like a parallel build race Added freeBSD patch as fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667 error: builder for '/nix/store/xrwjhd1cbh7172chmxnc10nv02kszb3l-gnome-todo-40.0.drv' failed with exit code 1; last 10 log lines: > build flags: -j12 -l12 > [27/214] Compiling C object src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.oks-panel-resources.c.o > FAILED: src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o > gcc -Isrc/plugins/libplugins.a.p -Isrc/plugins -I../src/plugins -I../src/animation -I../src/core -Isrc/gui -I../src/gui -I../src/models -Isrc -I../src -Isrc/plugins/all-tasks-panel -Isrc/plugins/background -Isrc/plugins/dark-theme -Isrc/plugins/eds -Isrc/plugins/inbox-panel -Isrc/plugins/next-week-panel -Isrc/plugins/night-light -Isrc/plugins/peace -Isrc/plugins/task-lists-workspace -Isrc/plugins/today-panel -Isrc/plugins/welcome -I/nix/store/ifrd1cxpxqx8iwmnc57z4hrxhln01rbw-glib-2.68.3-dev/include/glib-2.0 -I/nix/store/94iv84rv2d1cl0fk1l1mkmmbnxg7fyzz-glib-2.68.3/lib/glib-2.0/include -I/nix/store/ifrd1cxpxqx8iwmnc57z4hrxhln01rbw-glib-2.68.3-dev/include -I/nix/store/lbjfdhiar0b3qz48kw07gs1mni27kfv9-gtk4-4.2.1-dev/include/gtk-4.0 -I/nix/store/7i0zq8rd4wadxy3r0b18ga3cmc793gr8-cairo-1.16.0-dev/include/cairo -I/nix/store/i3jmkg9hwb9ss6c8mwlwxvqpldl2px6q-freetype-2.11.0-dev/include/freetype2 -I/nix/store/i3jmkg9hwb9ss6c8mwlwxvqpldl2px6q-freetype-2.11.0-dev/include -I/nix/store/avwgxwkdxal2gir7pznb4k65xxnkv9kx-gdk-pixbuf-2.42.6-dev/include/gdk-pixbuf-2.0 -I/nix/store/ajak80hbfrrppykc8mj4jxc9wh5ndybz-graphene-1.10.6/include/graphene-1.0 -I/nix/store/ajak80hbfrrppykc8mj4jxc9wh5ndybz-graphene-1.10.6/lib/graphene-1.0/include -I/nix/store/gpvwn9wl6x4cg8jfr2njj7cxyk8zk6v0-pango-1.48.5-dev/include/pango-1.0 -I/nix/store/q2hi3bjmacy1wjvm758fd0cd29vl1d7k-harfbuzz-2.8.2-dev/include/harfbuzz -I/nix/store/c1z9373m42wv2d0wj5qmdac72sayf37n-vulkan-headers-1.2.182.0/include -I/nix/store/yphqc4kynppqmasmysxjpzzgv552psq9-libadwaita-1.0.0-alpha.1-dev/include/libadwaita-1 -I/nix/store/9zwmk1fvrrbw5vdp5591ca8nq4f1v4al-gnome-online-accounts-3.40.0-dev/include/goa-1.0 -I/nix/store/jg655mm6pldbk7k3wnixn7dp41ga1920-gnome-online-accounts-3.40.0/lib/goa-1.0/include -I/nix/store/pnv64z2syqg3hv9yjs41wprn5dw8cx54-libpeas-1.30.0-dev/include/libpeas-1.0 -I/nix/store/wyn9sba9cklqi5ddk0p34n0rqzpjpz4p-gobject-introspection-1.68.0-dev/include/gobject-introspection-1.0 -I/nix/store/nbf745slz7241fl5gxcljd6lf6higf6x-libportal-0.4-dev/include -I/nix/store/mi6l0a0lcirlvnri7n05a6jvrlyyan1k-evolution-data-server-3.40.4-dev/include/evolution-data-server -I/nix/store/38l3kxa7h95nr7c8ipsxw9ww2x2lbg6s-libsecret-0.20.4-dev/include/libsecret-1 -I/nix/store/bzad4zrz48nxp23dhcvwy0hzrb51xyk8-libical-3.0.10-dev/include -I/nix/store/30hpnxn445n7ja8nx78rimhjzy73pmz9-libsoup-2.72.0-dev/include/libsoup-2.4 -I/nix/store/q8xy99la4sn3ak4h4l0gram0k3d1j2q6-libxml2-2.9.12-dev/include/libxml2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_CONFIG_H -fPIC -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -MD -MQ src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o -MF src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o.d -o src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o -c ../src/plugins/all-tasks-panel/gtd-all-tasks-panel.c > In file included from ../src/plugins/all-tasks-panel/gtd-all-tasks-panel.c:26: > ../src/gnome-todo.h:24:10: fatal error: gtd-enum-types.h: No such file or directory > 24 | #include "gtd-enum-types.h" > | ^~~~~~~~~~~~~~~~~~ > compilation terminated. > ninja: build stopped: subcommand failed.
2021-10-21 16:40:37 +00:00
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";
2022-06-08 02:45:44 +00:00
sha256 = "sha256-dio4Mg+5OGrnjtRAf4LwowO0sG50HRmlNR16cbDvEUY=";
extraPrefix = "";
name = "gnome-todo_meson-build.patch";
gnome-todo: patch build race away Only sometimes on a server with 12 cpu cores I get the below error Seems like a parallel build race Added freeBSD patch as fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667 error: builder for '/nix/store/xrwjhd1cbh7172chmxnc10nv02kszb3l-gnome-todo-40.0.drv' failed with exit code 1; last 10 log lines: > build flags: -j12 -l12 > [27/214] Compiling C object src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.oks-panel-resources.c.o > FAILED: src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o > gcc -Isrc/plugins/libplugins.a.p -Isrc/plugins -I../src/plugins -I../src/animation -I../src/core -Isrc/gui -I../src/gui -I../src/models -Isrc -I../src -Isrc/plugins/all-tasks-panel -Isrc/plugins/background -Isrc/plugins/dark-theme -Isrc/plugins/eds -Isrc/plugins/inbox-panel -Isrc/plugins/next-week-panel -Isrc/plugins/night-light -Isrc/plugins/peace -Isrc/plugins/task-lists-workspace -Isrc/plugins/today-panel -Isrc/plugins/welcome -I/nix/store/ifrd1cxpxqx8iwmnc57z4hrxhln01rbw-glib-2.68.3-dev/include/glib-2.0 -I/nix/store/94iv84rv2d1cl0fk1l1mkmmbnxg7fyzz-glib-2.68.3/lib/glib-2.0/include -I/nix/store/ifrd1cxpxqx8iwmnc57z4hrxhln01rbw-glib-2.68.3-dev/include -I/nix/store/lbjfdhiar0b3qz48kw07gs1mni27kfv9-gtk4-4.2.1-dev/include/gtk-4.0 -I/nix/store/7i0zq8rd4wadxy3r0b18ga3cmc793gr8-cairo-1.16.0-dev/include/cairo -I/nix/store/i3jmkg9hwb9ss6c8mwlwxvqpldl2px6q-freetype-2.11.0-dev/include/freetype2 -I/nix/store/i3jmkg9hwb9ss6c8mwlwxvqpldl2px6q-freetype-2.11.0-dev/include -I/nix/store/avwgxwkdxal2gir7pznb4k65xxnkv9kx-gdk-pixbuf-2.42.6-dev/include/gdk-pixbuf-2.0 -I/nix/store/ajak80hbfrrppykc8mj4jxc9wh5ndybz-graphene-1.10.6/include/graphene-1.0 -I/nix/store/ajak80hbfrrppykc8mj4jxc9wh5ndybz-graphene-1.10.6/lib/graphene-1.0/include -I/nix/store/gpvwn9wl6x4cg8jfr2njj7cxyk8zk6v0-pango-1.48.5-dev/include/pango-1.0 -I/nix/store/q2hi3bjmacy1wjvm758fd0cd29vl1d7k-harfbuzz-2.8.2-dev/include/harfbuzz -I/nix/store/c1z9373m42wv2d0wj5qmdac72sayf37n-vulkan-headers-1.2.182.0/include -I/nix/store/yphqc4kynppqmasmysxjpzzgv552psq9-libadwaita-1.0.0-alpha.1-dev/include/libadwaita-1 -I/nix/store/9zwmk1fvrrbw5vdp5591ca8nq4f1v4al-gnome-online-accounts-3.40.0-dev/include/goa-1.0 -I/nix/store/jg655mm6pldbk7k3wnixn7dp41ga1920-gnome-online-accounts-3.40.0/lib/goa-1.0/include -I/nix/store/pnv64z2syqg3hv9yjs41wprn5dw8cx54-libpeas-1.30.0-dev/include/libpeas-1.0 -I/nix/store/wyn9sba9cklqi5ddk0p34n0rqzpjpz4p-gobject-introspection-1.68.0-dev/include/gobject-introspection-1.0 -I/nix/store/nbf745slz7241fl5gxcljd6lf6higf6x-libportal-0.4-dev/include -I/nix/store/mi6l0a0lcirlvnri7n05a6jvrlyyan1k-evolution-data-server-3.40.4-dev/include/evolution-data-server -I/nix/store/38l3kxa7h95nr7c8ipsxw9ww2x2lbg6s-libsecret-0.20.4-dev/include/libsecret-1 -I/nix/store/bzad4zrz48nxp23dhcvwy0hzrb51xyk8-libical-3.0.10-dev/include -I/nix/store/30hpnxn445n7ja8nx78rimhjzy73pmz9-libsoup-2.72.0-dev/include/libsoup-2.4 -I/nix/store/q8xy99la4sn3ak4h4l0gram0k3d1j2q6-libxml2-2.9.12-dev/include/libxml2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_CONFIG_H -fPIC -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -MD -MQ src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o -MF src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o.d -o src/plugins/libplugins.a.p/all-tasks-panel_gtd-all-tasks-panel.c.o -c ../src/plugins/all-tasks-panel/gtd-all-tasks-panel.c > In file included from ../src/plugins/all-tasks-panel/gtd-all-tasks-panel.c:26: > ../src/gnome-todo.h:24:10: fatal error: gtd-enum-types.h: No such file or directory > 24 | #include "gtd-enum-types.h" > | ^~~~~~~~~~~~~~~~~~ > compilation terminated. > ninja: build stopped: subcommand failed.
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
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
gnome.adwaita-icon-theme
2021-05-14 13:35:20 +00:00
2018-08-04 09:54:43 +00:00
# Plug-ins
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 = {
updateScript = unstableGitUpdater {
url = "https://gitlab.gnome.org/GNOME/gnome-todo.git";
2018-08-04 09:54:43 +00:00
};
};
meta = with lib; {
2018-08-04 09:54:43 +00:00
description = "Personal task manager for GNOME";
homepage = "https://wiki.gnome.org/Apps/Todo";
2018-08-04 09:54:43 +00:00
license = licenses.gpl3Plus;
maintainers = teams.gnome.members;
2018-08-04 09:54:43 +00:00
platforms = platforms.linux;
};
}