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:
parent
f3193ba5bc
commit
04c0ea5234
24
pkgs/development/python-modules/wxPython-2.5/builder.sh
Normal file
24
pkgs/development/python-modules/wxPython-2.5/builder.sh
Normal 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
|
14
pkgs/development/python-modules/wxPython-2.5/default.nix
Normal file
14
pkgs/development/python-modules/wxPython-2.5/default.nix
Normal 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; }
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -17,7 +17,7 @@ let {
|
|||
wget
|
||||
par2cmdline
|
||||
cksfv
|
||||
bittorrent
|
||||
# bittorrent
|
||||
graphviz
|
||||
bash
|
||||
binutils
|
||||
|
|
Loading…
Reference in a new issue