mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
libnotify: enable strictDeps
checked output with diffoscope libnotify: make gobject-introspection conditional to fix binfmt cross-compile
This commit is contained in:
parent
bf05ab56cf
commit
a57efdec05
@ -7,8 +7,9 @@
|
||||
, docbook-xsl-ns
|
||||
, glib
|
||||
, gdk-pixbuf
|
||||
, gobject-introspection
|
||||
, gnome
|
||||
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
|
||||
, gobject-introspection
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -27,15 +28,24 @@ stdenv.mkDerivation rec {
|
||||
"-Dtests=false"
|
||||
"-Ddocbook_docs=disabled"
|
||||
"-Dgtk_doc=false"
|
||||
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
libxslt
|
||||
docbook-xsl-ns
|
||||
glib # for glib-mkenums needed during the build
|
||||
] ++ lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user