Files
nixpkgs/pkgs/by-name/li/libtorrent/package.nix
R. Ryantm 4fd2d6d3fc libtorrent: 0.15.1 -> 0.15.4
(cherry picked from commit 70b4703609)
2025-09-13 09:39:04 +05:30

57 lines
1.2 KiB
Nix

# Note: this is rakshasa's version of libtorrent, used mainly by rtorrent.
# *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc.
{
lib,
stdenv,
fetchFromGitHub,
autoconf-archive,
autoreconfHook,
cppunit,
openssl,
pkg-config,
zlib,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "rakshasa-libtorrent";
version = "0.15.4";
src = fetchFromGitHub {
owner = "rakshasa";
repo = "libtorrent";
rev = "v${version}";
hash = "sha256-EtT1g8fo2XRVO7pGUThoEklxpYKPI7OWwCZ2vVV73k4=";
};
nativeBuildInputs = [
autoconf-archive
autoreconfHook
pkg-config
];
buildInputs = [
cppunit
openssl
zlib
];
configureFlags = [ "--enable-aligned=yes" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
enableParallelBuilding = true;
meta = {
homepage = "https://github.com/rakshasa/libtorrent";
description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
ebzzry
codyopel
thiagokokada
];
platforms = lib.platforms.unix;
};
}