glib: enable introspection on cross
This commit is contained in:
parent
0b98d1a4f1
commit
98d8d1e587
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user