summary refs log tree commit diff
path: root/pkgs/development/python-modules/wxPython/builder.sh
blob: 1ad71e3b9cdcc198c905388d4b65fe1ed38d5669 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
source $stdenv/setup

flags="WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=0 BUILD_OGL=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