From d2d3a72b492bfd7970c7eda32a2ae58738294fcf Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Sun, 29 Dec 2024 15:45:31 +0100 Subject: [PATCH] libftdi: fix cross-compile Co-authored-by: Colin --- pkgs/development/libraries/libftdi/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libftdi/default.nix b/pkgs/development/libraries/libftdi/default.nix index 0936316bbca42..0bd3e6e143254 100644 --- a/pkgs/development/libraries/libftdi/default.nix +++ b/pkgs/development/libraries/libftdi/default.nix @@ -27,7 +27,9 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ libusb-compat-0_1 ]; - configureFlags = lib.optional (!stdenv.hostPlatform.isDarwin) "--with-async-mode"; + configureFlags = [ + "ac_cv_prog_HAVELIBUSB=${lib.getExe' (lib.getDev libusb-compat-0_1) "libusb-config"}" + ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) "--with-async-mode"; # allow async mode. from ubuntu. see: # https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/libftdi/trusty/view/head:/debian/patches/04_async_mode.diff