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