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-03-26 10:15:12 +00:00
|
|
|
version = "0.16.16";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-26 10:15:12 +00:00
|
|
|
url = mirror://sourceforge/libtorrent/libtorrent-rasterbar-0.16.16.tar.gz;
|
|
|
|
sha256 = "1a3yxwjs4qb0rwx6cfpvar0a8jmavb6ik580b27md08jhvq80if7";
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
|
|
|
|
2014-09-19 18:56:08 +01:00
|
|
|
buildInputs = [ boost boost.lib 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"
|
2014-09-19 18:56:08 +01:00
|
|
|
"--with-boost-libdir=${boost.lib}/lib"
|
2013-02-17 22:39:00 +00:00
|
|
|
"--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 ];
|
|
|
|
};
|
|
|
|
}
|