* Added BitTorrent.

svn path=/nixpkgs/trunk/; revision=797
This commit is contained in:
Eelco Dolstra 2004-02-17 20:03:12 +00:00
parent 56712d5032
commit 90e75450a4
3 changed files with 38 additions and 5 deletions

View File

@ -92,6 +92,10 @@
inherit fetchurl stdenv;
};
bittorrent = (import ../tools/networking/bittorrent) {
inherit fetchurl stdenv wxPython;
};
graphviz = (import ../tools/graphics/graphviz) {
inherit fetchurl stdenv libpng libjpeg expat;
x11 = xfree86;
@ -231,11 +235,7 @@
};
python = (import ../development/interpreters/python) {
inherit fetchurl stdenv;
};
python = (import ../development/interpreters/python) {
inherit fetchurl stdenv;
inherit fetchurl stdenv zlib;
};
j2re = (import ../development/interpreters/j2re) {

View File

@ -0,0 +1,18 @@
#! /bin/sh -e
buildinputs="$python $wxPython"
. $stdenv/setup
tar xvfz $src
cd BitTorrent-*
python setup.py build install --prefix=$out
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
done

View File

@ -0,0 +1,15 @@
{stdenv, fetchurl, wxPython}:
assert wxPython.python.zlibSupport;
derivation {
name = "bittorrent-3.3";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://bitconjurer.org/BitTorrent/BitTorrent-3.3.tar.gz;
md5 = "1ecf1fc40b4972470313f9ae728206e8";
};
python = wxPython.python;
inherit stdenv wxPython;
}