tracker: disable introspection if no emulator
e.g. when cross compiling from Linux to FreeBSD.
This commit is contained in:
parent
9144866bb7
commit
2654807c75
@ -7,6 +7,8 @@
|
||||
, pkg-config
|
||||
, asciidoc
|
||||
, gobject-introspection
|
||||
, buildPackages
|
||||
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||
, python3
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_45
|
||||
@ -52,12 +54,14 @@ stdenv.mkDerivation rec {
|
||||
pkg-config
|
||||
asciidoc
|
||||
gettext
|
||||
glib
|
||||
libxslt
|
||||
wrapGAppsNoGuiHook
|
||||
gobject-introspection
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_45
|
||||
(python3.pythonForBuild.withPackages (p: [ p.pygobject3 ]))
|
||||
] ++ lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -77,6 +81,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mesonFlags = [
|
||||
"-Ddocs=true"
|
||||
(lib.mesonEnable "introspection" withIntrospection)
|
||||
(lib.mesonBool "test_utils" withIntrospection)
|
||||
] ++ (
|
||||
let
|
||||
# https://gitlab.gnome.org/GNOME/tracker/-/blob/master/meson.build#L159
|
||||
|
Loading…
Reference in New Issue
Block a user