python.pkgs.shiboken2: bugfix
Building python.pkgs.shiboken2 fails for python version older than 3.9, due to crypt.h header issue related to older glibc (#202262). The fix is to use libxrypto for these older python versions.
This commit is contained in:
parent
3708ee280b
commit
22280d6311
@ -1,5 +1,12 @@
|
||||
{ python, lib, stdenv, pyside2
|
||||
, cmake, qt5, llvmPackages }:
|
||||
{ python
|
||||
, lib
|
||||
, stdenv
|
||||
, pyside2
|
||||
, cmake
|
||||
, qt5
|
||||
, libxcrypt
|
||||
, llvmPackages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "shiboken2";
|
||||
@ -17,7 +24,18 @@ stdenv.mkDerivation {
|
||||
CLANG_INSTALL_DIR = llvmPackages.libclang.out;
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ llvmPackages.libclang python python.pkgs.setuptools qt5.qtbase qt5.qtxmlpatterns ];
|
||||
|
||||
buildInputs = [
|
||||
llvmPackages.libclang
|
||||
python
|
||||
python.pkgs.setuptools
|
||||
qt5.qtbase
|
||||
qt5.qtxmlpatterns
|
||||
] ++ (lib.optionals (python.pythonOlder "3.9") [
|
||||
# see similar issue: 202262
|
||||
# libxcrypt is required for crypt.h for building older python modules
|
||||
libxcrypt
|
||||
]);
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_TESTS=OFF"
|
||||
|
Loading…
Reference in New Issue
Block a user