2013-12-25 01:19:55 +04:00
|
|
|
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip }:
|
2010-11-13 10:47:04 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-28 04:08:57 +03:00
|
|
|
name = "libtorrent-rasterbar-1.0.2";
|
2010-11-13 10:47:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-28 04:08:57 +03:00
|
|
|
url = "mirror://sourceforge/libtorrent/${name}.tar.gz";
|
|
|
|
sha256 = "1ph4cb6nrk2hiy89j3kz1wj16ph0b9yixrf4f4935rnzhha8x31w";
|
2010-11-13 10:47:04 +03:00
|
|
|
};
|
|
|
|
|
2014-10-01 23:55:40 +04:00
|
|
|
buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ];
|
2010-11-13 10:47:04 +03:00
|
|
|
|
2013-02-18 02:39:00 +04:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-python-binding"
|
2013-12-25 01:19:55 +04:00
|
|
|
"--with-libgeoip=system"
|
|
|
|
"--with-libiconv=yes"
|
2014-10-28 04:08:57 +03:00
|
|
|
"--with-boost=${boost.lib}"
|
2013-02-18 02:39:00 +04:00
|
|
|
];
|
2010-11-13 10:47:04 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.rasterbar.com/products/libtorrent/;
|
|
|
|
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
|
2010-11-15 12:52:52 +03:00
|
|
|
license = licenses.bsd3;
|
2010-11-13 10:47:04 +03:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
};
|
|
|
|
}
|