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