libftdi1: fix cross compilation

authored by Sandro Jäckel and committed by Artturin bc64b4d7 c0f3a3ac

+5 -2
+5 -2
pkgs/development/libraries/libftdi/1.x.nix
··· 29 29 sha256 = "0vipg3y0kbbzjhxky6hfyxy42mpqhvwn1r010zr5givcfp8ghq26"; 30 30 }; 31 31 32 + strictDeps = true; 33 + 32 34 nativeBuildInputs = [ cmake pkg-config ] 33 35 ++ optionals docSupport [ doxygen graphviz ] 34 36 ++ optionals pythonSupport [ swig ]; 35 37 36 38 buildInputs = [ libconfuse ] 37 - ++ optionals cppSupport [ boost ] 38 - ++ optionals pythonSupport [ python3 ]; 39 + ++ optionals cppSupport [ boost ]; 39 40 40 41 cmakeFlags = [ 41 42 "-DFTDIPP=${onOff cppSupport}" ··· 43 44 "-DLINK_PYTHON_LIBRARY=${onOff pythonSupport}" 44 45 "-DPYTHON_BINDINGS=${onOff pythonSupport}" 45 46 "-DDOCUMENTATION=${onOff docSupport}" 47 + "-DPYTHON_EXECUTABLE=${python3.pythonForBuild.interpreter}" 48 + "-DPYTHON_LIBRARY=${python3}/lib/libpython${python3.pythonVersion}${stdenv.hostPlatform.extensions.sharedLibrary}" 46 49 ]; 47 50 48 51 propagatedBuildInputs = [ libusb1 ];