about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Hammerschmidt2008-02-23 12:11:27 +0000
committerTobias Hammerschmidt2008-02-23 12:11:27 +0000
commite7f99973e1ef2c97e75325991ac763342e09bf18 (patch)
tree793d06835a9193acb9dd4ae8ec99f8cdb0716b12
parentadc77fc0c797067fb2a5e7546b6944100437f4f4 (diff)
Added libtorrent a bittorent library written in C++ for *nix and rtorrent a ncurses client for libtorrent. backups/master@10848
svn path=/nixpkgs/trunk/; revision=10842
-rw-r--r--pkgs/tools/networking/p2p/libtorrent/default.nix20
-rw-r--r--pkgs/tools/networking/p2p/rtorrent/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix8
3 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/networking/p2p/libtorrent/default.nix b/pkgs/tools/networking/p2p/libtorrent/default.nix
new file mode 100644
index 000000000000..d8cdc26fd38c
--- /dev/null
+++ b/pkgs/tools/networking/p2p/libtorrent/default.nix
@@ -0,0 +1,20 @@
+args: with args;
+stdenv.mkDerivation ( rec {
+  pname = "libtorrent";
+  version = "0.11.9";
+
+  name = "${pname}-${version}";
+  
+  src = fetchurl {
+    url = "http://libtorrent.rakshasa.no/downloads/${name}.tar.gz";
+    sha256 = "71f09218a7784b21ab53cdfcd8fa122da60352e5ca117fda7cd8d2763f908a08";
+  };
+
+  buildInputs = [ pkgconfig openssl libsigcxx ];
+  
+  meta = {
+    description = "
+      LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code.
+    ";
+  };
+})
diff --git a/pkgs/tools/networking/p2p/rtorrent/default.nix b/pkgs/tools/networking/p2p/rtorrent/default.nix
new file mode 100644
index 000000000000..04b50f9d5d25
--- /dev/null
+++ b/pkgs/tools/networking/p2p/rtorrent/default.nix
@@ -0,0 +1,20 @@
+args: with args;
+stdenv.mkDerivation ( rec {
+  pname = "rtorrent";
+  version = "0.7.9";
+
+  name = "${pname}-${version}";
+  
+  src = fetchurl {
+    url = "http://libtorrent.rakshasa.no/downloads/${name}.tar.gz";
+    sha256 = "f06f72b1fec94177147b1db0aab15be4f62d1b0354811a67ae74e0cd1e50a119";
+  };
+
+  buildInputs = [ libtorrent ncurses pkgconfig libsigcxx curl zlib openssl ];
+  
+  meta = {
+    description = "
+      rtorrent is a ncurses client for libtorrent and is ideal for use with screen or dtach.
+    ";
+  };
+})
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9b6ed7c3ec53..86f7fc5ba4c5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -659,6 +659,10 @@ rec {
     inherit fetchurl stdenv ghc tetex polytable;
   };
 
+  libtorrent = import ../tools/networking/p2p/libtorrent {
+    inherit fetchurl stdenv pkgconfig openssl libsigcxx;
+  };
+
   lout = import ../tools/typesetting/lout {
     inherit fetchurl stdenv ghostscript;
   };
@@ -814,6 +818,10 @@ rec {
     inherit fetchurl stdenv cpio zlib bzip2 file sqlite beecrypt neon elfutils;
   };
 
+  rtorrent = import ../tools/networking/p2p/rtorrent {
+    inherit fetchurl stdenv libtorrent ncurses pkgconfig libsigcxx curl zlib openssl;
+  };
+
   sablotron = import ../tools/text/xml/sablotron {
     inherit fetchurl stdenv expat;
   };