mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 21:57:52 +03:00
python.pkgs.pyside2: bugfix
Building python.pkgs.pyside2 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
22280d6311
commit
9608226adc
@ -1,5 +1,13 @@
|
|||||||
{ python, fetchurl, lib, stdenv,
|
{ python
|
||||||
cmake, ninja, qt5, shiboken2 }:
|
, fetchurl
|
||||||
|
, lib
|
||||||
|
, stdenv
|
||||||
|
, cmake
|
||||||
|
, libxcrypt
|
||||||
|
, ninja
|
||||||
|
, qt5
|
||||||
|
, shiboken2
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pyside2";
|
pname = "pyside2";
|
||||||
@ -26,12 +34,29 @@ stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick";
|
NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja qt5.qmake python ];
|
nativeBuildInputs = [ cmake ninja qt5.qmake python ];
|
||||||
|
|
||||||
buildInputs = (with qt5; [
|
buildInputs = (with qt5; [
|
||||||
qtbase qtxmlpatterns qtmultimedia qttools qtx11extras qtlocation qtscript
|
qtbase
|
||||||
qtwebsockets qtwebengine qtwebchannel qtcharts qtsensors qtsvg
|
qtxmlpatterns
|
||||||
]) ++ [
|
qtmultimedia
|
||||||
python.pkgs.setuptools
|
qttools
|
||||||
];
|
qtx11extras
|
||||||
|
qtlocation
|
||||||
|
qtscript
|
||||||
|
qtwebsockets
|
||||||
|
qtwebengine
|
||||||
|
qtwebchannel
|
||||||
|
qtcharts
|
||||||
|
qtsensors
|
||||||
|
qtsvg
|
||||||
|
]) ++ (with python.pkgs; [
|
||||||
|
setuptools
|
||||||
|
]) ++ (lib.optionals (python.pythonOlder "3.9") [
|
||||||
|
# see similar issue: 202262
|
||||||
|
# libxcrypt is required for crypt.h for building older python modules
|
||||||
|
libxcrypt
|
||||||
|
]);
|
||||||
|
|
||||||
propagatedBuildInputs = [ shiboken2 ];
|
propagatedBuildInputs = [ shiboken2 ];
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user