atk: support cross-compilation by disabling introspection
This commit is contained in:
parent
17689c66d4
commit
25c0253f00
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{ lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib
|
||||
, fixDarwinDylibNames, gobject-introspection, gnome
|
||||
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -17,8 +18,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
||||
nativeBuildInputs = [ meson ninja pkg-config gettext glib ]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames
|
||||
++ lib.optional withIntrospection gobject-introspection;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# Required by atk.pc
|
||||
|
@ -31,6 +33,10 @@ stdenv.mkDerivation rec {
|
|||
./fix_pc.patch
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dintrospection=${lib.boolToString withIntrospection}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru = {
|
||||
|
|
Loading…
Reference in a new issue