From 309a4d2e99f3e966afbe57bbc52f4a8dd730783e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 17 Jun 2021 20:35:24 +0000 Subject: [PATCH] libmbim: fix cross by disabling introspection --- pkgs/development/libraries/libmbim/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libmbim/default.nix b/pkgs/development/libraries/libmbim/default.nix index 9695b221cb97..ef13fdc9de12 100644 --- a/pkgs/development/libraries/libmbim/default.nix +++ b/pkgs/development/libraries/libmbim/default.nix @@ -1,11 +1,12 @@ { lib, stdenv , fetchurl , pkg-config -, gobject-introspection , glib , python3 , systemd , libgudev +, withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform +, gobject-introspection }: stdenv.mkDerivation rec { @@ -21,7 +22,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-udev-base-dir=${placeholder "out"}/lib/udev" - "--enable-introspection" + (lib.enableFeature withIntrospection "introspection") ]; nativeBuildInputs = [