git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #59298 from worldofpeace/gnome-pomodoro

gnome3.pomodoro: 0.13.4 -> 0.15.1

commiteb095fa677e6a2760a9f7f9c32f8d47b08146045 authorworldofpeace <worldofpeace@users.noreply.github.com> dateWed 17 Apr 2019, 20:17 (8 years ago) parent7f2f8f3c2d8d2f
4 files changed+138−26
pkgs/desktops/gnome-3/misc/pomodoro/default.nix+50−26 pkgs/development/libraries/gom/default.nix+73 pkgs/development/libraries/gom/longer-stress-timeout.patch+13 pkgs/top-level/all-packages.nix+2
pkgs/desktops/gnome-3/misc/pomodoro/default.nix+50−26
@@ -1,49 +1,73 @@
1−{ stdenv, fetchFromGitHub, fetchpatch, autoconf-archive, appstream-glib, intltool, pkgconfig, libtool, wrapGAppsHook,
2− dbus-glib, libcanberra, gst_all_1, vala, gnome3, gtk3, libxml2, autoreconfHook,
3− glib, gobject-introspection, libpeas
1+{ stdenv
2+, fetchFromGitHub
3+, autoconf-archive
4+, appstream-glib
5+, pkgconfig
6+, wrapGAppsHook
7+, libcanberra
8+, gst_all_1
9+, vala
10+, gtk3
11+, gom
12+, sqlite
13+, libxml2
14+, autoreconfHook
15+, glib
16+, gobject-introspection
17+, libpeas
18+, gnome-shell
19+, gsettings-desktop-schemas
20+, adwaita-icon-theme
21+, gettext
422}:
523
624stdenv.mkDerivation rec {
7− version = "0.13.4";
8− name = "gnome-shell-pomodoro-${version}";
25+ pname = "gnome-shell-pomodoro";
26+ version = "0.15.1";
927
1028 src = fetchFromGitHub {
1129 owner = "codito";
1230 repo = "gnome-pomodoro";
13− rev = "${version}";
14− sha256 = "0fiql99nhj168wbfhvzrhfcm4c4569gikd2zaf10vzszdqjahrl1";
31+ rev = version;
32+ sha256 = "0nmgd122gsfka0p50mila88iwrzckq2r36a3h20lswn5qkn321i1";
1533 };
1634
17− patches = [
18− # build with Vala ≥ 0.42
19− (fetchpatch {
20− url = https://github.com/codito/gnome-pomodoro/commit/36778823ca5bd94b2aa948e5d8718f84d99d9af0.patch;
21− sha256 = "0a9x0p5wny3an9xawam9nhpffw5m4kgwj5jvv0g6c2lwlfzrx2rh";
22− })
23− ];
24−
2535 nativeBuildInputs = [
26− autoreconfHook vala autoconf-archive libtool intltool appstream-glib
27− wrapGAppsHook pkgconfig libxml2
36+ appstream-glib
37+ autoconf-archive
38+ autoreconfHook
39+ gettext
40+ gobject-introspection
41+ libxml2
42+ pkgconfig
43+ vala
44+ wrapGAppsHook
2845 ];
2946
3047 buildInputs = [
31− glib gobject-introspection libpeas
32− dbus-glib libcanberra gst_all_1.gstreamer
33− gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
34− gnome3.gsettings-desktop-schemas
35− gnome3.gnome-shell gtk3 gnome3.adwaita-icon-theme
48+ adwaita-icon-theme
49+ glib
50+ gnome-shell
51+ gom
52+ gsettings-desktop-schemas
53+ gst_all_1.gst-plugins-base
54+ gst_all_1.gst-plugins-good
55+ gst_all_1.gstreamer
56+ gtk3
57+ libcanberra
58+ libpeas
59+ sqlite
3660 ];
3761
3862 meta = with stdenv.lib; {
39− homepage = http://gnomepomodoro.org/;
40− description = "A time management utility for GNOME based on the pomodoro technique";
63+ homepage = https://gnomepomodoro.org/;
64+ description = "Time management utility for GNOME based on the pomodoro technique";
4165 longDescription = ''
4266 This GNOME utility helps to manage time according to Pomodoro Technique.
4367 It intends to improve productivity and focus by taking short breaks.
4468 '';
45− maintainers = with maintainers; [ ];
46− license = licenses.gpl3;
69+ maintainers = with maintainers; [ worldofpeace ];
70+ license = licenses.gpl3Plus;
4771 platforms = platforms.linux;
4872 };
4973}
pkgs/development/libraries/gom/default.nixnew file+73
@@ -0,0 +1,73 @@
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, meson
5+, ninja
6+, pkgconfig
7+, glib
8+, python3
9+, sqlite
10+, gdk_pixbuf
11+, gnome3
12+, gobject-introspection
13+}:
14+
15+stdenv.mkDerivation rec {
16+ pname = "gom";
17+ version = "0.3.3";
18+
19+ outputs = [ "out" "py" ];
20+
21+ src = fetchurl {
22+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
23+ sha256 = "1n1n226dyb3q98216aah87in9hhjcwsbpspsdqqfswz2bx5y6mxc";
24+ };
25+
26+ patches = [
27+ # Needed to apply the next patch
28+ (fetchpatch {
29+ url = "https://gitlab.gnome.org/GNOME/gom/commit/e8b7c314ce61d459132cf03c9e455d2a01fdc6ea.patch";
30+ sha256 = "0d7g3nm5lrfhfx9ly8qgf5bfp12kvr7m1xmlgin2q8vqpn0r2ggp";
31+ })
32+ # https://gitlab.gnome.org/GNOME/gom/merge_requests/3
33+ (fetchpatch {
34+ url = "https://gitlab.gnome.org/worldofpeace/gom/commit/b621c15600b1c32826c9878565eb2398a50907f2.patch";
35+ sha256 = "1hqck9bb7sxn4akisnn26sbddlphjsavgksick5k4h3rsc0xwx1v";
36+ })
37+ ./longer-stress-timeout.patch
38+ ];
39+
40+ nativeBuildInputs = [
41+ gobject-introspection
42+ meson
43+ ninja
44+ pkgconfig
45+ ];
46+
47+ buildInputs = [
48+ gdk_pixbuf
49+ glib
50+ sqlite
51+ python3.pkgs.pygobject3
52+ ];
53+
54+ mesonFlags = [
55+ "-Dpygobject-override-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
56+ ];
57+
58+ doCheck = true;
59+
60+ passthru = {
61+ updateScript = gnome3.updateScript {
62+ packageName = pname;
63+ };
64+ };
65+
66+ meta = with stdenv.lib; {
67+ description = "A GObject to SQLite object mapper";
68+ homepage = https://wiki.gnome.org/Projects/Gom;
69+ license = licenses.lgpl21Plus;
70+ platforms = platforms.linux;
71+ maintainers = gnome3.maintainers;
72+ };
73+}
pkgs/development/libraries/gom/longer-stress-timeout.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/tests/meson.build b/tests/meson.build
2+index 1df4884..d7a6f5d 100644
3+--- a/tests/meson.build
4++++ b/tests/meson.build
5+@@ -25,7 +25,7 @@ test('test-gom-find', test_find)
6+
7+ test_stress = executable('test-gom-stress', 'test-gom-stress.c',
8+ dependencies: [libgom_dep])
9+-test('test-gom-stress', test_stress, timeout: 300)
10++test('test-gom-stress', test_stress, timeout: 500)
11+
12+ test_transform = executable('test-gom-transform', 'test-gom-transform.c',
13+ c_args: '-DIMAGE="@0@/gnome.png"'.format(meson.current_source_dir()),
pkgs/top-level/all-packages.nix+2
@@ -10459,6 +10459,8 @@ in
1045910459
1046010460 glib-networking = callPackage ../development/libraries/glib-networking {};
1046110461
10462+ gom = callPackage ../development/libraries/gom { };
10463+
1046210464 ace = callPackage ../development/libraries/ace { };
1046310465
1046410466 atk = callPackage ../development/libraries/atk { };