Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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.
{
autoreconfHook,
cppunit,
curl,
fetchFromGitHub,
lib,
nix-update-script,
openssl,
pkg-config,
stdenv,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libtorrent-rakshasa";
version = "0.16.0";
src = fetchFromGitHub {
owner = "rakshasa";
repo = "libtorrent";
tag = "v${finalAttrs.version}";
hash = "sha256-CtLRZK384IlfXoXLIpdXWa8s9M0n0EopKrJGrK6xq3c=";
};
nativeBuildInputs = [
autoreconfHook
curl
pkg-config
];
buildInputs = [
cppunit
openssl
zlib
];
configureFlags = [ "--enable-aligned=yes" ];
passthru.updateScript = nix-update-script { };
enableParallelBuilding = true;
meta = {
description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
homepage = "https://github.com/rakshasa/libtorrent";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
ebzzry
codyopel
thiagokokada
];
platforms = lib.platforms.unix;
};
})