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
|
2023-03-15 16:39:30 +00:00
|
|
|
, buildPackages
|
2023-10-19 13:55:26 +00:00
|
|
|
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
|
2021-12-06 16:07:01 +00:00
|
|
|
, gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libnotify";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.8.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-7o8++UYVatNAb99F/u29zZMtvSEatPFvdeuk82+y9sA=";
|
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
|
|
|
|
];
|
|
|
|
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library that sends desktop notifications to a notification daemon";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libnotify";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
mainProgram = "notify-send";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|