+12
-2
pkgs/development/libraries/libnotify/default.nix
+12
-2
pkgs/development/libraries/libnotify/default.nix
···
7
, docbook-xsl-ns
8
, glib
9
, gdk-pixbuf
10
, gobject-introspection
11
-
, gnome
12
}:
13
14
stdenv.mkDerivation rec {
···
27
"-Dtests=false"
28
"-Ddocbook_docs=disabled"
29
"-Dgtk_doc=false"
30
];
31
32
nativeBuildInputs = [
33
-
gobject-introspection
34
meson
35
ninja
36
pkg-config
37
libxslt
38
docbook-xsl-ns
39
];
40
41
propagatedBuildInputs = [
···
7
, docbook-xsl-ns
8
, glib
9
, gdk-pixbuf
10
+
, gnome
11
+
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
12
, gobject-introspection
13
}:
14
15
stdenv.mkDerivation rec {
···
28
"-Dtests=false"
29
"-Ddocbook_docs=disabled"
30
"-Dgtk_doc=false"
31
+
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
32
];
33
34
+
strictDeps = true;
35
+
36
nativeBuildInputs = [
37
meson
38
ninja
39
pkg-config
40
libxslt
41
docbook-xsl-ns
42
+
glib # for glib-mkenums needed during the build
43
+
] ++ lib.optionals withIntrospection [
44
+
gobject-introspection
45
+
];
46
+
47
+
buildInputs = lib.optionals withIntrospection [
48
+
gobject-introspection
49
];
50
51
propagatedBuildInputs = [