Merge pull request #121058 from winterqt/init-jesec-rtorrent

rtorrent-jesec: init at 0.9.8-r11

authored by

Robert Schütz and committed by
GitHub
808d8897 3d67a797

+89
+28
pkgs/tools/networking/p2p/libtorrent-jesec/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, cmake, gtest, openssl, zlib }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "libtorrent-jesec"; 5 + version = "0.13.8-r1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "jesec"; 9 + repo = "libtorrent"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-Eh5pMkSe9uO0dPRWDg2BbbRxxuvX9FM2/OReq/61ojc="; 12 + }; 13 + 14 + nativeBuildInputs = [ cmake ]; 15 + buildInputs = [ openssl zlib ]; 16 + 17 + # https://github.com/jesec/libtorrent/issues/1 18 + doCheck = false; 19 + checkInputs = [ gtest ]; 20 + 21 + meta = with lib; { 22 + description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code (jesec's fork)"; 23 + homepage = "https://github.com/jesec/libtorrent"; 24 + license = licenses.gpl2Plus; 25 + maintainers = with maintainers; [ winterqt ]; 26 + platforms = platforms.linux; 27 + }; 28 + }
+57
pkgs/tools/networking/p2p/rtorrent-jesec/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , gtest 6 + , libtorrent-jesec 7 + , curl 8 + , ncurses 9 + , xmlrpc_c 10 + , nlohmann_json 11 + , xmlRpcSupport ? true 12 + , jsonRpcSupport ? true 13 + }: 14 + let 15 + inherit (lib) optional; 16 + in 17 + stdenv.mkDerivation rec { 18 + pname = "rtorrent-jesec"; 19 + version = "0.9.8-r10"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "jesec"; 23 + repo = "rtorrent"; 24 + rev = "v${version}"; 25 + sha256 = "sha256-Ge5W1rLaneUA7LxnBuMO/jQlqLOUKFf3gaAAlRr/qeM="; 26 + }; 27 + 28 + nativeBuildInputs = [ cmake ]; 29 + buildInputs = [ libtorrent-jesec curl ncurses ] 30 + ++ optional xmlRpcSupport xmlrpc_c 31 + ++ optional jsonRpcSupport nlohmann_json; 32 + 33 + cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ] 34 + ++ optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO" 35 + ++ optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO"; 36 + 37 + doCheck = true; 38 + checkInputs = [ gtest ]; 39 + 40 + prePatch = '' 41 + substituteInPlace src/main.cc \ 42 + --replace "/etc/rtorrent/rtorrent.rc" "${placeholder "out"}/etc/rtorrent/rtorrent.rc" 43 + ''; 44 + 45 + postFixup = '' 46 + mkdir -p $out/etc/rtorrent 47 + cp $src/doc/rtorrent.rc $out/etc/rtorrent/rtorrent.rc 48 + ''; 49 + 50 + meta = with lib; { 51 + description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)"; 52 + homepage = "https://github.com/jesec/rtorrent"; 53 + license = licenses.gpl2Plus; 54 + maintainers = with maintainers; [ winterqt ]; 55 + platforms = platforms.linux; 56 + }; 57 + }
+4
pkgs/top-level/all-packages.nix
··· 6460 6460 6461 6461 libtorrent = callPackage ../tools/networking/p2p/libtorrent { }; 6462 6462 6463 + libtorrent-jesec = callPackage ../tools/networking/p2p/libtorrent-jesec { }; 6464 + 6463 6465 libmpack = callPackage ../development/libraries/libmpack { }; 6464 6466 6465 6467 libiberty = callPackage ../development/libraries/libiberty { }; ··· 8177 8179 rsstail = callPackage ../applications/networking/feedreaders/rsstail { }; 8178 8180 8179 8181 rtorrent = callPackage ../tools/networking/p2p/rtorrent { }; 8182 + 8183 + rtorrent-jesec = callPackage ../tools/networking/p2p/rtorrent-jesec { }; 8180 8184 8181 8185 rubber = callPackage ../tools/typesetting/rubber { }; 8182 8186