jesec-rtorrent.rtorrent: 0.9.8-r14 -> 0.9.8-r15

+27 -19
+27 -19
pkgs/tools/networking/p2p/jesec-rtorrent/rtorrent.nix
··· 2 2 , stdenv 3 3 , fetchFromGitHub 4 4 , cmake 5 + , curl 5 6 , gtest 6 7 , libtorrent 7 - , curl 8 8 , ncurses 9 - , xmlrpc_c 10 - , nlohmann_json 11 - , xmlRpcSupport ? true 12 - , jsonRpcSupport ? true 9 + , jsonRpcSupport ? true, nlohmann_json 10 + , xmlRpcSupport ? true, xmlrpc_c 13 11 }: 14 - let 15 - inherit (lib) optional; 16 - in 12 + 17 13 stdenv.mkDerivation rec { 18 14 pname = "jesec-rtorrent"; 19 - version = "0.9.8-r14"; 15 + version = "0.9.8-r15"; 20 16 21 17 src = fetchFromGitHub { 22 18 owner = "jesec"; 23 19 repo = "rtorrent"; 24 20 rev = "v${version}"; 25 - sha256 = "sha256-AbjzNIha3MkCZi6MuyUfPx9r3zeXeTUzkbD7uHB85lo="; 21 + hash = "sha256-yYOw8wsiQd478JijLgPtEWsw2/ewd46re+t9D705rmk="; 26 22 }; 27 23 28 - nativeBuildInputs = [ cmake ]; 29 - buildInputs = [ libtorrent curl ncurses ] 30 - ++ optional xmlRpcSupport xmlrpc_c 31 - ++ optional jsonRpcSupport nlohmann_json; 24 + nativeBuildInputs = [ 25 + cmake 26 + ]; 32 27 33 - cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ] 34 - ++ optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO" 35 - ++ optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO"; 28 + buildInputs = [ 29 + curl 30 + libtorrent 31 + ncurses 32 + ] 33 + ++ lib.optional jsonRpcSupport nlohmann_json 34 + ++ lib.optional xmlRpcSupport xmlrpc_c; 35 + 36 + cmakeFlags = [ 37 + "-DUSE_RUNTIME_CA_DETECTION=NO" 38 + ] 39 + ++ lib.optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO" 40 + ++ lib.optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"; 41 + 36 42 37 43 doCheck = true; 38 - checkInputs = [ gtest ]; 44 + checkInputs = [ 45 + gtest 46 + ]; 39 47 40 48 prePatch = '' 41 49 substituteInPlace src/main.cc \ ··· 51 59 description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)"; 52 60 homepage = "https://github.com/jesec/rtorrent"; 53 61 license = licenses.gpl2Plus; 54 - maintainers = with maintainers; [ winterqt ]; 62 + maintainers = with maintainers; [ winterqt AndersonTorres ]; 55 63 platforms = platforms.linux; 56 64 }; 57 65 }