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-03-26 11:15:12 +01:00
|
|
|
version = "0.16.16";
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-26 11:15:12 +01:00
|
|
|
url = mirror://sourceforge/libtorrent/libtorrent-rasterbar-0.16.16.tar.gz;
|
|
|
|
sha256 = "1a3yxwjs4qb0rwx6cfpvar0a8jmavb6ik580b27md08jhvq80if7";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|