glib: enable introspection on cross

This commit is contained in:
Artturin 2024-05-05 19:36:03 +03:00
parent 0b98d1a4f1
commit 98d8d1e587

View File

@ -22,7 +22,8 @@
, makeHardcodeGsettingsPatch , makeHardcodeGsettingsPatch
, testers , testers
, gobject-introspection , gobject-introspection
, withIntrospection ? stdenv.buildPlatform.canExecute stdenv.hostPlatform && lib.meta.availableOn stdenv.hostPlatform gobject-introspection , mesonEmulatorHook
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages && lib.meta.availableOn stdenv.hostPlatform gobject-introspection
}: }:
assert stdenv.isLinux -> util-linuxMinimal != null; assert stdenv.isLinux -> util-linuxMinimal != null;
@ -150,6 +151,8 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals withIntrospection [ ] ++ lib.optionals withIntrospection [
gi-docgen gi-docgen
gobject-introspection' gobject-introspection'
] ++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
]; ];
propagatedBuildInputs = [ zlib libffi gettext libiconv ]; propagatedBuildInputs = [ zlib libffi gettext libiconv ];