* Added pygtk.
* Updated bittorrent to 4.0.1. svn path=/nixpkgs/trunk/; revision=2879
This commit is contained in:
parent
2ed47f7522
commit
4e4ad61aee
11
pkgs/development/python-modules/pygtk/default.nix
Normal file
11
pkgs/development/python-modules/pygtk/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{stdenv, fetchurl, python, pkgconfig, glib, gtk}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pygtk-2.6.1";
|
||||
# builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.6/pygtk-2.6.1.tar.bz2;
|
||||
md5 = "b4610829e4f57b5538dfa3b8f1fbe026";
|
||||
};
|
||||
buildInputs = [python pkgconfig glib gtk];
|
||||
}
|
@ -30,6 +30,8 @@ rec {
|
||||
|
||||
substituter = ../build-support/substitute/substitute.sh;
|
||||
|
||||
makeWrapper = ../build-support/make-wrapper/make-wrapper.sh;
|
||||
|
||||
|
||||
### TOOLS
|
||||
|
||||
@ -133,8 +135,7 @@ rec {
|
||||
};
|
||||
|
||||
bittorrent = (import ../tools/networking/bittorrent) {
|
||||
inherit fetchurl stdenv;
|
||||
wxPython = wxPython24;
|
||||
inherit fetchurl stdenv python pygtk makeWrapper;
|
||||
};
|
||||
|
||||
graphviz = (import ../tools/graphics/graphviz) {
|
||||
@ -917,6 +918,11 @@ rec {
|
||||
wxGTK = wxGTK24;
|
||||
};
|
||||
|
||||
pygtk = (import ../development/python-modules/pygtk) {
|
||||
inherit fetchurl stdenv python pkgconfig;
|
||||
inherit (gtkLibs) glib gtk;
|
||||
};
|
||||
|
||||
readline = (import ../development/libraries/readline) {
|
||||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
buildInputs="$python $wxPython"
|
||||
. $stdenv/setup
|
||||
. $makeWrapper
|
||||
|
||||
buildPhase=buildPhase
|
||||
buildPhase() {
|
||||
@ -11,14 +11,12 @@ installPhase() {
|
||||
python setup.py install --prefix=$out
|
||||
|
||||
# Create wrappers that set the environment correctly.
|
||||
mv $out/bin $out/bin-orig
|
||||
mkdir $out/bin
|
||||
for i in $(cd $out/bin-orig && ls); do
|
||||
cat > $out/bin/$i <<EOF
|
||||
#! /bin/sh
|
||||
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/$i
|
||||
for i in $(cd $out/bin && ls); do
|
||||
# Note: the GUI apps except to be in a directory called `bin',
|
||||
# so don't move them.
|
||||
mv $out/bin/$i $out/bin/.orig-$i
|
||||
makeWrapper $out/bin/.orig-$i $out/bin/$i \
|
||||
--set PYTHONPATH "$out/lib/python2.3/site-packages:$pygtk/lib/python2.3/site-packages/gtk-2.0"
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,12 @@
|
||||
{stdenv, fetchurl, wxPython}:
|
||||
|
||||
assert wxPython.python.zlibSupport;
|
||||
{stdenv, fetchurl, python, pygtk, makeWrapper}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "bittorrent-3.4.2";
|
||||
name = "bittorrent-4.0.1";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/BitTorrent-3.4.2.tar.gz;
|
||||
md5 = "b854f25a33289565bcaeaded04955c1a";
|
||||
url = http://www.bittorrent.com/dl/BitTorrent-4.0.1.tar.gz;
|
||||
md5 = "e890d856d43b3d0af14b28714bc5801a";
|
||||
};
|
||||
inherit wxPython;
|
||||
inherit (wxPython) python;
|
||||
buildInputs = [python pygtk];
|
||||
inherit python pygtk makeWrapper;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user