Merge pull request #309309 from Artturin/glibbuildgironcros

glib: enable introspection on cross
This commit is contained in:
Artturin 2024-05-07 18:25:39 +03:00 committed by GitHub
commit 4c2a6867fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,8 @@
, makeHardcodeGsettingsPatch
, testers
, 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;
@ -150,6 +151,8 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals withIntrospection [
gi-docgen
gobject-introspection'
] ++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
propagatedBuildInputs = [ zlib libffi gettext libiconv ];