From 90e75450a473227008a70636b9c3ae1288ac5942 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Feb 2004 20:03:12 +0000 Subject: [PATCH] * Added BitTorrent. svn path=/nixpkgs/trunk/; revision=797 --- pkgs/system/all-packages-generic.nix | 10 +++++----- pkgs/tools/networking/bittorrent/builder.sh | 18 ++++++++++++++++++ pkgs/tools/networking/bittorrent/default.nix | 15 +++++++++++++++ 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100755 pkgs/tools/networking/bittorrent/builder.sh create mode 100644 pkgs/tools/networking/bittorrent/default.nix diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index ec1116db787b..84c7ee5c2eda 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -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) { diff --git a/pkgs/tools/networking/bittorrent/builder.sh b/pkgs/tools/networking/bittorrent/builder.sh new file mode 100755 index 000000000000..2e643e6f311c --- /dev/null +++ b/pkgs/tools/networking/bittorrent/builder.sh @@ -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 <