diff options
author | Artturin <Artturin@artturin.com> | 2024-05-05 19:36:03 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2024-05-05 19:36:03 +0300 |
commit | 98d8d1e58762be50fe96bf2757a661826518c9f9 (patch) | |
tree | 2a0ef9bca910b84aaa286b34157871e654573f13 /pkgs/development/libraries/glib | |
parent | 0b98d1a4f14305b5cf74a9608cf4a70d03fc26f7 (diff) |
glib: enable introspection on cross
Diffstat (limited to 'pkgs/development/libraries/glib')
-rw-r--r-- | pkgs/development/libraries/glib/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index 5a7f49ce94ae1..c543133ead6c4 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -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 ]; |