libftdi1: build with python3 support

This commit is contained in:
Jörg Thalheim 2019-11-28 11:50:30 +00:00
parent 353c83adde
commit e3f2309d14
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, cmake, pkgconfig, libusb1, libconfuse
, cppSupport ? true, boost ? null
, pythonSupport ? true, python ? null, swig ? null
, pythonSupport ? true, python3 ? null, swig ? null
, docSupport ? true, doxygen ? null
}:
assert cppSupport -> boost != null;
assert pythonSupport -> python != null && swig != null;
assert pythonSupport -> python3 != null && swig != null;
assert docSupport -> doxygen != null;
stdenv.mkDerivation rec {
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = with stdenv.lib; [ libconfuse ]
++ optionals cppSupport [ boost ]
++ optionals pythonSupport [ python swig ]
++ optionals pythonSupport [ python3 swig ]
++ optionals docSupport [ doxygen ];
preBuild = stdenv.lib.optionalString docSupport ''