diff options
Diffstat (limited to 'pkgs/by-name/li/libtorrent/package.nix')
-rw-r--r-- | pkgs/by-name/li/libtorrent/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libtorrent/package.nix b/pkgs/by-name/li/libtorrent/package.nix new file mode 100644 index 0000000000000..04de15c9674d8 --- /dev/null +++ b/pkgs/by-name/li/libtorrent/package.nix @@ -0,0 +1,51 @@ +# 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 +, libsigcxx +, openssl +, pkg-config +, zlib +, unstableGitUpdater +}: + +stdenv.mkDerivation { + pname = "rakshasa-libtorrent"; + version = "0.13.8-unstable-2023-03-16"; + + src = fetchFromGitHub { + owner = "rakshasa"; + repo = "libtorrent"; + rev = "91f8cf4b0358d9b4480079ca7798fa7d9aec76b5"; + hash = "sha256-mEIrMwpWMCAA70Qb/UIOg8XTfg71R/2F4kb3QG38duU="; + }; + + nativeBuildInputs = [ + autoconf-archive + autoreconfHook + pkg-config + ]; + + buildInputs = [ + cppunit + libsigcxx + openssl + zlib + ]; + + passthru.updateScript = unstableGitUpdater { tagPrefix = "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; + }; +} |