mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 14:41:27 +00:00
Add wxPython-3.0 with OpenGL support.
This commit is contained in:
parent
ae8a8b5deb
commit
93d313c0ed
25
pkgs/development/python-modules/wxPython/3.0.nix
Normal file
25
pkgs/development/python-modules/wxPython/3.0.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true }:
|
||||
|
||||
assert wxGTK.unicode;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let version = "3.0.0.0"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "wxPython-${version}";
|
||||
|
||||
builder = ./builder3.0.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
|
||||
sha256 = "af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ]
|
||||
++ optional openglSupport pythonPackages.pyopengl;
|
||||
|
||||
inherit openglSupport;
|
||||
|
||||
passthru = { inherit wxGTK openglSupport; };
|
||||
}
|
22
pkgs/development/python-modules/wxPython/builder3.0.sh
Normal file
22
pkgs/development/python-modules/wxPython/builder3.0.sh
Normal file
@ -0,0 +1,22 @@
|
||||
source $stdenv/setup
|
||||
|
||||
flags="WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=${openglSupport?1:0} UNICODE=1"
|
||||
|
||||
configurePhase() {
|
||||
cd wxPython
|
||||
}
|
||||
|
||||
buildPhase() {
|
||||
python setup.py $flags build
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
python setup.py $flags install --prefix=$out
|
||||
|
||||
# Ugly workaround for Nixpkgs/111.
|
||||
ln -s $out/lib/python*/site-packages/wx-*-gtk2-unicode/* $out/lib/python*/site-packages
|
||||
|
||||
wrapPythonPrograms
|
||||
}
|
||||
|
||||
genericBuild
|
@ -7610,6 +7610,12 @@ rec {
|
||||
wxGTK = pkgs.wxGTK28;
|
||||
};
|
||||
|
||||
wxPython30 = import ../development/python-modules/wxPython/3.0.nix {
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig;
|
||||
inherit pythonPackages;
|
||||
wxGTK = pkgs.wxGTK30;
|
||||
};
|
||||
|
||||
xe = buildPythonPackage rec {
|
||||
url = "http://www.blarg.net/%7Esteveha/xe-0.7.4.tar.gz";
|
||||
name = stdenv.lib.nameFromURL url ".tar";
|
||||
|
Loading…
Reference in New Issue
Block a user