2017-08-08 23:57:29 -07:00
|
|
|
# NOTE: this is rakshava's version of libtorrent, used mainly by rtorrent
|
|
|
|
# This is NOT libtorrent-rasterbar, used by Deluge, qbitttorent, and others
|
2015-12-06 09:36:28 -08:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig
|
|
|
|
, libtool, autoconf, automake, cppunit
|
|
|
|
, openssl, libsigcxx, zlib }:
|
2010-07-28 04:55:54 -07:00
|
|
|
|
2015-09-14 11:48:12 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2011-07-18 07:34:33 -07:00
|
|
|
name = "libtorrent-${version}";
|
2018-08-04 06:31:05 -07:00
|
|
|
version = "0.13.7";
|
2008-02-23 04:11:27 -08:00
|
|
|
|
2017-09-20 07:45:58 -07:00
|
|
|
src = fetchFromGitHub {
|
2015-12-06 09:36:28 -08:00
|
|
|
owner = "rakshasa";
|
|
|
|
repo = "libtorrent";
|
2018-08-04 06:31:05 -07:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "027qanwcisxhx0bq8dn8cpg8563q0k2pm8ls278f04n7jqvvwkp0";
|
2008-02-23 04:11:27 -08:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libtool autoconf automake cppunit openssl libsigcxx zlib ];
|
2015-12-06 09:36:28 -08:00
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
2011-07-18 07:34:33 -07:00
|
|
|
|
2015-09-14 11:48:12 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-04 06:31:05 -07:00
|
|
|
inherit (src.meta) homepage;
|
2015-09-14 11:48:12 -07:00
|
|
|
description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code";
|
2011-07-18 07:34:33 -07:00
|
|
|
|
2018-04-03 18:31:13 -07:00
|
|
|
platforms = platforms.unix;
|
2016-05-16 13:30:20 -07:00
|
|
|
maintainers = with maintainers; [ ebzzry codyopel ];
|
2008-02-23 04:11:27 -08:00
|
|
|
};
|
2010-07-28 04:55:54 -07:00
|
|
|
}
|