mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
* Added BitTorrent.
svn path=/nixpkgs/trunk/; revision=797
This commit is contained in:
parent
56712d5032
commit
90e75450a4
@ -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) {
|
||||
|
18
pkgs/tools/networking/bittorrent/builder.sh
Executable file
18
pkgs/tools/networking/bittorrent/builder.sh
Executable 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
|
15
pkgs/tools/networking/bittorrent/default.nix
Normal file
15
pkgs/tools/networking/bittorrent/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user