libftdi1: build with python3 support (#74476)
libftdi1: build with python3 support
This commit is contained in:
commit
b77b5598a7
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, fetchurl, cmake, pkgconfig, libusb1, libconfuse
|
{ stdenv, fetchurl, cmake, pkgconfig, libusb1, libconfuse
|
||||||
, cppSupport ? true, boost ? null
|
, cppSupport ? true, boost ? null
|
||||||
, pythonSupport ? true, python ? null, swig ? null
|
, pythonSupport ? true, python3 ? null, swig ? null
|
||||||
, docSupport ? true, doxygen ? null
|
, docSupport ? true, doxygen ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert cppSupport -> boost != null;
|
assert cppSupport -> boost != null;
|
||||||
assert pythonSupport -> python != null && swig != null;
|
assert pythonSupport -> python3 != null && swig != null;
|
||||||
assert docSupport -> doxygen != null;
|
assert docSupport -> doxygen != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
buildInputs = with stdenv.lib; [ libconfuse ]
|
buildInputs = with stdenv.lib; [ libconfuse ]
|
||||||
++ optionals cppSupport [ boost ]
|
++ optionals cppSupport [ boost ]
|
||||||
++ optionals pythonSupport [ python swig ]
|
++ optionals pythonSupport [ python3 swig ]
|
||||||
++ optionals docSupport [ doxygen ];
|
++ optionals docSupport [ doxygen ];
|
||||||
|
|
||||||
preBuild = stdenv.lib.optionalString docSupport ''
|
preBuild = stdenv.lib.optionalString docSupport ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user