libgudev: support cross-compilation by disabling introspection and vala

(cherry picked from commit 05aa68850cc55bad5a1829f0bd3995c82a8029db)
This commit is contained in:
Rick van Schijndel 2021-05-22 00:00:00 +02:00 committed by Alexandre Iooss
parent 0507e901b3
commit 20d9ca119b
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ stdenv.mkDerivation rec {
mesonFlags = [ mesonFlags = [
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway
"-Dtests=disabled" "-Dtests=disabled"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=disabled"
"-Dvapi=disabled"
]; ];
passthru = { passthru = {