diff options
Diffstat (limited to 'pkgs/by-name/rt/rtorrent/package.nix')
-rw-r--r-- | pkgs/by-name/rt/rtorrent/package.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/pkgs/by-name/rt/rtorrent/package.nix b/pkgs/by-name/rt/rtorrent/package.nix new file mode 100644 index 0000000000000..c7a74aecf660e --- /dev/null +++ b/pkgs/by-name/rt/rtorrent/package.nix @@ -0,0 +1,84 @@ +{ lib +, stdenv +, autoconf-archive +, autoreconfHook +, cppunit +, curl +, fetchFromGitHub +, installShellFiles +, libsigcxx +, libtool +, libtorrent +, ncurses +, openssl +, pkg-config +, xmlrpc_c +, zlib +, nixosTests +, unstableGitUpdater +}: + +stdenv.mkDerivation { + pname = "rakshasa-rtorrent"; + version = "0.9.8-unstable-2023-03-16"; + + src = fetchFromGitHub { + owner = "rakshasa"; + repo = "rtorrent"; + rev = "1da0e3476dcabbf74b2e836d6b4c37b4d96bde09"; + hash = "sha256-OXOZSMuNAU+VGwNyyfzcmkTRjDJq9HsKUNxZDYpSvFQ="; + }; + + outputs = [ "out" "man" ]; + + passthru = { + inherit libtorrent; + }; + + nativeBuildInputs = [ + autoconf-archive + autoreconfHook + installShellFiles + pkg-config + ]; + + buildInputs = [ + cppunit + curl + libsigcxx + libtool + libtorrent + ncurses + openssl + xmlrpc_c + zlib + ]; + + configureFlags = [ + "--with-xmlrpc-c" + "--with-posix-fallocate" + ]; + + passthru = { + updateScript = unstableGitUpdater { tagPrefix = "v"; }; + tests = { + inherit (nixosTests) rtorrent; + }; + }; + + enableParallelBuilding = true; + + postInstall = '' + installManPage doc/old/rtorrent.1 + install -Dm644 doc/rtorrent.rc-example -t $out/share/doc/rtorrent/rtorrent.rc + ''; + + meta = { + homepage = "https://rakshasa.github.io/rtorrent/"; + description = "Ncurses client for libtorrent, ideal for use with screen, tmux, or dtach"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ ebzzry codyopel thiagokokada ]; + platforms = lib.platforms.unix; + mainProgram = "rtorrent"; + }; +} |