summary refs log tree commit diff
path: root/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libtorrent-rasterbar/generic.nix')
-rw-r--r--pkgs/development/libraries/libtorrent-rasterbar/generic.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/generic.nix b/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
new file mode 100644
index 00000000000..b866f66dbfa
--- /dev/null
+++ b/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconv, geoip
+# Version specific options
+, version, sha256
+, ... }:
+
+stdenv.mkDerivation rec {
+  name = "libtorrent-rasterbar-${version}";
+  
+  src = fetchurl {
+    url = "mirror://sourceforge/libtorrent/${name}.tar.gz";
+    inherit sha256;
+  };
+
+  buildInputs = [ boost pkgconfig openssl zlib python libiconv geoip ];
+
+  configureFlags = [ 
+    "--enable-python-binding"
+    "--with-libgeoip=system"
+    "--with-libiconv=yes"
+    "--with-boost=${boost.dev}"
+    "--with-boost-libdir=${boost.lib}/lib"
+    "--with-libiconv=yes"
+  ];
+  
+  meta = with stdenv.lib; {
+    homepage = http://www.rasterbar.com/products/libtorrent/;
+    description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
+    license = licenses.bsd3;
+    maintainers = [ maintainers.phreedom ];
+  };
+}