From bc64b4d7889e3f64bc6c319e2dd27783dfc9c35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 8 Sep 2022 00:13:19 +0200 Subject: [PATCH] libftdi1: fix cross compilation --- pkgs/development/libraries/libftdi/1.x.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libftdi/1.x.nix b/pkgs/development/libraries/libftdi/1.x.nix index 30c9e294ecc8..e19a9764bdf9 100644 --- a/pkgs/development/libraries/libftdi/1.x.nix +++ b/pkgs/development/libraries/libftdi/1.x.nix @@ -29,13 +29,14 @@ stdenv.mkDerivation rec { sha256 = "0vipg3y0kbbzjhxky6hfyxy42mpqhvwn1r010zr5givcfp8ghq26"; }; + strictDeps = true; + nativeBuildInputs = [ cmake pkg-config ] ++ optionals docSupport [ doxygen graphviz ] ++ optionals pythonSupport [ swig ]; buildInputs = [ libconfuse ] - ++ optionals cppSupport [ boost ] - ++ optionals pythonSupport [ python3 ]; + ++ optionals cppSupport [ boost ]; cmakeFlags = [ "-DFTDIPP=${onOff cppSupport}" @@ -43,6 +44,8 @@ stdenv.mkDerivation rec { "-DLINK_PYTHON_LIBRARY=${onOff pythonSupport}" "-DPYTHON_BINDINGS=${onOff pythonSupport}" "-DDOCUMENTATION=${onOff docSupport}" + "-DPYTHON_EXECUTABLE=${python3.pythonForBuild.interpreter}" + "-DPYTHON_LIBRARY=${python3}/lib/libpython${python3.pythonVersion}${stdenv.hostPlatform.extensions.sharedLibrary}" ]; propagatedBuildInputs = [ libusb1 ];