@@ -1,22 +1,41 @@
1−{ stdenv, fetchurl, pkgconfig, autoreconfHook
1+{ stdenv, fetchurl, meson, ninja, pkgconfig, fetchpatch
2−, glib, gdk_pixbuf, gobject-introspection }:
2+, glib, gdk_pixbuf, gobject-introspection, gnome3 }:
4stdenv.mkDerivation rec {
4stdenv.mkDerivation rec {
7− name = "libnotify-${ver_maj}.${ver_min}";
5+ pname = "libnotify";
9 src = fetchurl {
8 src = fetchurl {
10− url = "mirror://gnome/sources/libnotify/${ver_maj}/${name}.tar.xz";
9+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
11− sha256 = "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w";
10+ sha256 = "1371csx0n92g60b5dmai4mmzdnx8081mc3kcgc6a0xipcq5rw839";
14− # disable tests as we don't need to depend on gtk+(2/3)
13+ patches = [
15− configureFlags = [ "--disable-tests" ];
14+ # Fix darwin build
15+ # https://gitlab.gnome.org/GNOME/libnotify/merge_requests/9
17+ url = "https://gitlab.gnome.org/GNOME/libnotify/commit/55eb69247fe2b479ea43311503042fc03bf4e67d.patch";
18+ sha256 = "1hlb5b7c5axiyir1i5j2pi94bm2gyr1ybkp6yaqy7yk6iiqlvv50";
23+ # disable tests as we don't need to depend on gtk+(2/3)
25+ "-Ddocbook_docs=disabled"
17− nativeBuildInputs = [ pkgconfig autoreconfHook gobject-introspection ];
29+ nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection ];
18 buildInputs = [ glib gdk_pixbuf ];
30 buildInputs = [ glib gdk_pixbuf ];
33+ updateScript = gnome3.updateScript {
35+ versionPolicy = "none";
20 meta = with stdenv.lib; {
39 meta = with stdenv.lib; {
21 homepage = https://developer.gnome.org/notification-spec/;
40 homepage = https://developer.gnome.org/notification-spec/;
22 description = "A library that sends desktop notifications to a notification daemon";
41 description = "A library that sends desktop notifications to a notification daemon";