wxPython: fix build

(cherry picked from commit 1285d739d8)
This commit is contained in:
Frederik Rietdijk
2019-03-03 08:37:03 +01:00
parent 75ee83deeb
commit da66a6359f

View File

@@ -33,12 +33,14 @@ buildPythonPackage rec {
hardeningDisable = [ "format" ];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ ]
++ (lib.optional openglSupport pyopengl)
++ (lib.optionals (!stdenv.isDarwin) [ wxGTK (wxGTK.gtk) libX11 ])
++ (lib.optionals stdenv.isDarwin [ wxmac darwin.apple_sdk.frameworks.Cocoa ])
;
nativeBuildInputs = [ pkgconfig ]
++ (lib.optionals (!stdenv.isDarwin) [ wxGTK libX11 ])
++ (lib.optionals stdenv.isDarwin [ wxmac darwin.apple_sdk.frameworks.Cocoa ]);
buildInputs = [ ]
++ (lib.optionals (!stdenv.isDarwin) [ (wxGTK.gtk) ])
++ (lib.optional openglSupport pyopengl);
preConfigure = ''
cd wxPython
# remove wxPython's darwin hack that interference with python-2.7-distutils-C++.patch