1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
libxslt,
docbook-xsl-ns,
glib,
gdk-pixbuf,
gnome,
buildPackages,
withIntrospection ?
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
gobject-introspection,
}:
stdenv.mkDerivation rec {
pname = "libnotify";
version = "0.8.8";
outputs = [
"out"
"man"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/libnotify/${lib.versions.majorMinor version}/libnotify-${version}.tar.xz";
hash = "sha256-I0IO9hncLLWuutYT9II6L6QcB+Wh0FYo1A9uxLNb/d0=";
};
mesonFlags = [
# disable tests as we don't need to depend on GTK 4
"-Dtests=false"
"-Ddocbook_docs=disabled"
"-Dgtk_doc=false"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
];
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
libxslt
docbook-xsl-ns
glib # for glib-mkenums needed during the build
]
++ lib.optionals withIntrospection [
gobject-introspection
];
propagatedBuildInputs = [
gdk-pixbuf
glib
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = {
description = "Library that sends desktop notifications to a notification daemon";
homepage = "https://gitlab.gnome.org/GNOME/libnotify";
license = lib.licenses.lgpl21;
teams = [ lib.teams.gnome ];
mainProgram = "notify-send";
platforms = lib.platforms.unix;
};
}
|