Skip to content

Commit

Permalink
libftdi: fix cross-compile (#369149)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 30, 2024
2 parents 6cb4a2a + d2d3a72 commit c0851de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libftdi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0851de

Please sign in to comment.