Skip to content

Commit c0851de

Browse files
authored
libftdi: fix cross-compile (#369149)
2 parents 6cb4a2a + d2d3a72 commit c0851de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/development/libraries/libftdi/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ stdenv.mkDerivation rec {
2727

2828
propagatedBuildInputs = [ libusb-compat-0_1 ];
2929

30-
configureFlags = lib.optional (!stdenv.hostPlatform.isDarwin) "--with-async-mode";
30+
configureFlags = [
31+
"ac_cv_prog_HAVELIBUSB=${lib.getExe' (lib.getDev libusb-compat-0_1) "libusb-config"}"
32+
] ++ lib.optional (!stdenv.hostPlatform.isDarwin) "--with-async-mode";
3133

3234
# allow async mode. from ubuntu. see:
3335
# https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/libftdi/trusty/view/head:/debian/patches/04_async_mode.diff

0 commit comments

Comments
 (0)