2013-02-17 22:39:00 +00:00
|
|
|
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python }:
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtorrent-rasterbar-${version}";
|
2013-02-17 22:39:00 +00:00
|
|
|
version = "0.16.8";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libtorrent.googlecode.com/files/${name}.tar.gz";
|
2013-02-17 22:39:00 +00:00
|
|
|
sha256 = "01jxhyndqkc0qag22s5w0vs63hlp4rr4bca8k7fj37gky7w119c0";
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
|
|
|
|
2013-02-17 22:39:00 +00:00
|
|
|
buildInputs = [ boost pkgconfig openssl zlib python ];
|
2010-11-13 07:47:04 +00:00
|
|
|
|
2013-02-17 22:39:00 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost}/include/boost"
|
|
|
|
"--with-boost-libdir=${boost}/lib"
|
|
|
|
"--enable-python-binding"
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|