diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-01-01 15:08:33 -0800 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-01-01 15:58:37 -0800 |
commit | 2834df37a886b2c3b76d1cbbdd510ce31059bb2d (patch) | |
tree | ea12d6adc2bd8f8eb25c415934160f125871ac04 /pkgs | |
parent | 1a99acd069d81883afb2be9bc975cf349b58e7be (diff) |
libftdi: do not force a build of python if !pythonSupport
libftdi has a `pythonSupport` parameter, but still produces a (build-time) dependency on python even when it is set to `false`. This commit corrects that. This allows building tiny systems (think embedded widgets) that need libftdi, without having to cross-build all of python for the target system.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libftdi/1.x.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libftdi/1.x.nix b/pkgs/development/libraries/libftdi/1.x.nix index e19a9764bdf9e..75c9beea9b98c 100644 --- a/pkgs/development/libraries/libftdi/1.x.nix +++ b/pkgs/development/libraries/libftdi/1.x.nix @@ -44,6 +44,7 @@ stdenv.mkDerivation rec { "-DLINK_PYTHON_LIBRARY=${onOff pythonSupport}" "-DPYTHON_BINDINGS=${onOff pythonSupport}" "-DDOCUMENTATION=${onOff docSupport}" + ] ++ lib.optionals pythonSupport [ "-DPYTHON_EXECUTABLE=${python3.pythonForBuild.interpreter}" "-DPYTHON_LIBRARY=${python3}/lib/libpython${python3.pythonVersion}${stdenv.hostPlatform.extensions.sharedLibrary}" ]; |