2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxslt
|
|
|
|
, docbook-xsl-ns
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2021-12-06 16:07:01 +00:00
|
|
|
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
|
|
|
|
, gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libnotify";
|
|
|
|
version = "0.7.9";
|
|
|
|
|
|
|
|
outputs = [ "out" "man" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0qa7cx6ra5hwqnxw95b9svgjg5q6ynm8y843iqjszxvds5z53h36";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# disable tests as we don't need to depend on GTK (2/3)
|
|
|
|
"-Dtests=false"
|
|
|
|
"-Ddocbook_docs=disabled"
|
|
|
|
"-Dgtk_doc=false"
|
2021-12-06 16:07:01 +00:00
|
|
|
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
libxslt
|
|
|
|
docbook-xsl-ns
|
2021-12-06 16:07:01 +00:00
|
|
|
glib # for glib-mkenums needed during the build
|
|
|
|
] ++ lib.optionals withIntrospection [
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals withIntrospection [
|
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-30 13:39:12 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libnotify";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library that sends desktop notifications to a notification daemon";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|