git.iko.soy/typeable/nixpkgs
on master help sign in
wxPython: enable headers
commit5ca3511f5672e527d20c5fb712581eb6739cead0 authorBert Moens <bert.moens@gmail.com> dateWed 13 Dec 2017, 21:01 (9 years ago) parent19841b5
1 file changed+4−1
pkgs/development/python-modules/wxPython/3.0.nix+4−1
pkgs/development/python-modules/wxPython/3.0.nix+4−1
@@ -43,6 +43,9 @@ buildPythonPackage rec {
4343 # remove wxPython's darwin hack that interference with python-2.7-distutils-C++.patch
4444 substituteInPlace config.py \
4545 --replace "distutils.unixccompiler.UnixCCompiler = MyUnixCCompiler" ""
46+ # set the WXPREFIX to $out instead of the storepath of wxwidgets
47+ substituteInPlace config.py \
48+ --replace "WXPREFIX = getWxConfigValue('--prefix')" "WXPREFIX = '$out'"
4649 # this check is supposed to only return false on older systems running non-framework python
4750 substituteInPlace src/osx_cocoa/_core_wrap.cpp \
4851 --replace "return wxPyTestDisplayAvailable();" "return true;"
@@ -62,7 +65,7 @@ buildPythonPackage rec {
6265 buildPhase = "";
6366
6467 installPhase = ''
65− ${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
68+ ${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=0 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
6669 wrapPythonPrograms
6770 '';
6871