git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #59298 from worldofpeace/gnome-pomodoro
eb095faworldofpeace
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,
1+{ stdenv
2− dbus-glib, libcanberra, gst_all_1, vala, gnome3, gtk3, libxml2, autoreconfHook,
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
3− glib, gobject-introspection, libpeas
16+, gobject-introspection
17+, libpeas
18+, gnome-shell
19+, gsettings-desktop-schemas
20+, adwaita-icon-theme
21+, gettext
4}:
22}:
5
23
6stdenv.mkDerivation rec {
24stdenv.mkDerivation rec {
7− version = "0.13.4";
8− name = "gnome-shell-pomodoro-${version}";
25+ pname = "gnome-shell-pomodoro";
26+ version = "0.15.1";
9
27
10 src = fetchFromGitHub {
28 src = fetchFromGitHub {
11 owner = "codito";
29 owner = "codito";
12 repo = "gnome-pomodoro";
30 repo = "gnome-pomodoro";
13− rev = "${version}";
31+ rev = version;
14− sha256 = "0fiql99nhj168wbfhvzrhfcm4c4569gikd2zaf10vzszdqjahrl1";
32+ sha256 = "0nmgd122gsfka0p50mila88iwrzckq2r36a3h20lswn5qkn321i1";
15 };
33 };
16
34
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−
25 nativeBuildInputs = [
35 nativeBuildInputs = [
26− autoreconfHook vala autoconf-archive libtool intltool appstream-glib
36+ appstream-glib
37+ autoconf-archive
38+ autoreconfHook
39+ gettext
40+ gobject-introspection
41+ libxml2
42+ pkgconfig
43+ vala
27− wrapGAppsHook pkgconfig libxml2
44+ wrapGAppsHook
28 ];
45 ];
29
46
30 buildInputs = [
47 buildInputs = [
31− glib gobject-introspection libpeas
48+ adwaita-icon-theme
32− dbus-glib libcanberra gst_all_1.gstreamer
49+ glib
33− gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
50+ gnome-shell
51+ gom
34− gnome3.gsettings-desktop-schemas
52+ gsettings-desktop-schemas
35− gnome3.gnome-shell gtk3 gnome3.adwaita-icon-theme
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
36 ];
60 ];
37
61
38 meta = with stdenv.lib; {
62 meta = with stdenv.lib; {
39− homepage = http://gnomepomodoro.org/;
63+ homepage = https://gnomepomodoro.org/;
40− description = "A time management utility for GNOME based on the pomodoro technique";
64+ description = "Time management utility for GNOME based on the pomodoro technique";
41 longDescription = ''
65 longDescription = ''
42 This GNOME utility helps to manage time according to Pomodoro Technique.
66 This GNOME utility helps to manage time according to Pomodoro Technique.
43 It intends to improve productivity and focus by taking short breaks.
67 It intends to improve productivity and focus by taking short breaks.
44 '';
68 '';
45− maintainers = with maintainers; [ ];
69+ maintainers = with maintainers; [ worldofpeace ];
46− license = licenses.gpl3;
70+ license = licenses.gpl3Plus;
47 platforms = platforms.linux;
71 platforms = platforms.linux;
48 };
72 };
49}
73}
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
10459
10459
10460 glib-networking = callPackage ../development/libraries/glib-networking {};
10460 glib-networking = callPackage ../development/libraries/glib-networking {};
10461
10461
10462+ gom = callPackage ../development/libraries/gom { };
10463+
10462 ace = callPackage ../development/libraries/ace { };
10464 ace = callPackage ../development/libraries/ace { };
10463
10465
10464 atk = callPackage ../development/libraries/atk { };
10466 atk = callPackage ../development/libraries/atk { };