2013-12-24 21:19:55 +00:00
|
|
|
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip }:
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtorrent-rasterbar-${version}";
|
2014-02-13 17:03:02 +00:00
|
|
|
version = "0.16.14";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-13 17:03:02 +00:00
|
|
|
url = mirror://sourceforge/libtorrent/libtorrent-rasterbar-0.16.14.tar.gz;
|
|
|
|
sha256 = "0s4f36f28cgq55pgx4h99q18a0p566bhifxmqxjhlb63a1w20m2c";
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
|
|
|
|
2013-12-24 21:19:55 +00:00
|
|
|
buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ];
|
2010-11-13 07:47:04 +00:00
|
|
|
|
2013-02-17 22:39:00 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost}/include/boost"
|
|
|
|
"--with-boost-libdir=${boost}/lib"
|
|
|
|
"--enable-python-binding"
|
2013-12-24 21:19:55 +00:00
|
|
|
"--with-libgeoip=system"
|
|
|
|
"--with-libiconv=yes"
|
2013-02-17 22:39:00 +00:00
|
|
|
];
|
2010-11-13 07:47:04 +00: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 09:52:52 +00:00
|
|
|
license = licenses.bsd3;
|
2010-11-13 07:47:04 +00:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
};
|
|
|
|
}
|