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-27 17:37:44 +01:00
|
|
|
version = "0.16.15";
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-27 17:37:44 +01:00
|
|
|
url = mirror://sourceforge/libtorrent/libtorrent-rasterbar-0.16.15.tar.gz;
|
|
|
|
sha256 = "0xcz4hphgkcdxcbmgzk27mxn7478hy417pn55zn5hnpllgndy3w2";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|