2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-09-22 12:18:02 +02:00
|
|
|
|
|
|
|
flags="WXPORT=gtk2 BUILD_GLCANVAS=0 BUILD_OGL=0"
|
|
|
|
|
|
|
|
configurePhase() {
|
|
|
|
cd wxPython
|
|
|
|
}
|
|
|
|
configurePhase=configurePhase
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
# Hack: setup.py should figure this out itself (by calling
|
|
|
|
# wx-config) but apparently something goes wrong.
|
|
|
|
export NIX_CFLAGS_COMPILE="`wx-config --cflags` $NIX_CFLAGS_COMPILE"
|
|
|
|
|
|
|
|
python setup.py $flags build_ext
|
|
|
|
}
|
|
|
|
buildPhase=buildPhase
|
|
|
|
|
|
|
|
installPhase() {
|
|
|
|
python setup.py $flags install --prefix=$out
|
|
|
|
}
|
|
|
|
installPhase=installPhase
|
|
|
|
|
|
|
|
genericBuild
|