04c0ea5234
for now. svn path=/nixpkgs/trunk/; revision=1489
24 lines
518 B
Bash
24 lines
518 B
Bash
. $stdenv/setup
|
|
|
|
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 |