2021-10-21 19:58:06 +00:00
|
|
|
# Note: this is rakshasa's version of libtorrent, used mainly by rtorrent.
|
|
|
|
# *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc.
|
2024-11-16 17:58:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoconf-archive,
|
|
|
|
autoreconfHook,
|
|
|
|
cppunit,
|
|
|
|
libsigcxx,
|
|
|
|
openssl,
|
|
|
|
pkg-config,
|
|
|
|
zlib,
|
|
|
|
gitUpdater,
|
2019-07-29 19:56:30 +00:00
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2024-09-29 20:11:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-21 19:58:06 +00:00
|
|
|
pname = "rakshasa-libtorrent";
|
2024-09-29 20:11:11 +00:00
|
|
|
version = "0.14.0";
|
2008-02-23 12:11:27 +00:00
|
|
|
|
2017-09-20 14:45:58 +00:00
|
|
|
src = fetchFromGitHub {
|
2015-12-06 17:36:28 +00:00
|
|
|
owner = "rakshasa";
|
2021-10-21 19:58:06 +00:00
|
|
|
repo = "libtorrent";
|
2024-09-29 20:11:11 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-MDLAp7KFmVvHL+haWVYwWG8gnLkTh6g19ydRkbu9cIs=";
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
|
|
|
|
2021-10-21 19:58:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cppunit
|
|
|
|
libsigcxx
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2011-07-18 14:34:33 +00:00
|
|
|
|
2024-11-16 17:59:11 +00:00
|
|
|
configureFlags = [ "--enable-aligned=yes" ];
|
|
|
|
|
2024-10-04 05:25:27 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
2024-06-25 14:33:40 +00:00
|
|
|
|
2021-10-20 08:06:28 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-06-25 19:18:06 +00:00
|
|
|
meta = {
|
2019-07-20 01:26:40 +00:00
|
|
|
homepage = "https://github.com/rakshasa/libtorrent";
|
2015-09-14 18:48:12 +00:00
|
|
|
description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
|
2024-06-25 19:18:06 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-11-16 17:58:55 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
ebzzry
|
|
|
|
codyopel
|
|
|
|
thiagokokada
|
|
|
|
];
|
2024-06-25 19:18:06 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
2010-07-28 11:55:54 +00:00
|
|
|
}
|