3
0
Fork 0
forked from mirrors/nixpkgs

* Start adding wxPython 2.5. Doesn't work yet though, so disable it

for now.

svn path=/nixpkgs/trunk/; revision=1489
This commit is contained in:
Eelco Dolstra 2004-09-22 10:18:02 +00:00
parent f3193ba5bc
commit 04c0ea5234
4 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,24 @@
. $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

View file

@ -0,0 +1,14 @@
{stdenv, fetchurl, pkgconfig, wxGTK, python}:
assert wxGTK.compat22;
stdenv.mkDerivation {
name = "wxPython-2.5.2.8";
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/wxpython/wxPythonSrc-2.5.2.8.tar.gz;
md5 = "573fd376fd39b66ad5fbf44b487aa0b2";
};
buildInputs = [pkgconfig wxGTK (wxGTK.gtk) python];
inherit wxGTK; # !!! move this down
} // { inherit python; }

View file

@ -640,10 +640,15 @@ rec {
inherit fetchurl stdenv perl expat;
};
wxPython = (import ../development/python-modules/wxPython) {
wxPython = (import ../development/python-modules/wxPython-2.5) {
inherit fetchurl stdenv pkgconfig wxGTK python;
};
wxPython24 = (import ../development/python-modules/wxPython) {
inherit fetchurl stdenv pkgconfig python;
wxGTK = wxGTK24;
};
readline = (import ../development/libraries/readline) {
inherit fetchurl stdenv ncurses;
};

View file

@ -17,7 +17,7 @@ let {
wget
par2cmdline
cksfv
bittorrent
# bittorrent
graphviz
bash
binutils