2014-11-26 23:16:50 +00:00
|
|
|
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconv, geoip
|
2014-11-01 02:30:09 +00:00
|
|
|
# Version specific options
|
|
|
|
, version, sha256
|
|
|
|
, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtorrent-rasterbar-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libtorrent/${name}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2014-11-26 23:16:50 +00:00
|
|
|
buildInputs = [ boost pkgconfig openssl zlib python libiconv geoip ];
|
2014-11-01 02:30:09 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-python-binding"
|
|
|
|
"--with-libgeoip=system"
|
|
|
|
"--with-libiconv=yes"
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.lib}/lib"
|
2014-11-26 23:16:50 +00:00
|
|
|
"--with-libiconv=yes"
|
|
|
|
];
|
2014-11-01 02:30:09 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.rasterbar.com/products/libtorrent/;
|
|
|
|
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
};
|
|
|
|
}
|