mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 20:53:22 +00:00
jesec-rtorrent.rtorrent: 0.9.8-r14 -> 0.9.8-r15
This commit is contained in:
parent
24414aeca8
commit
335dbeb95c
@ -2,40 +2,48 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
|
, curl
|
||||||
, gtest
|
, gtest
|
||||||
, libtorrent
|
, libtorrent
|
||||||
, curl
|
|
||||||
, ncurses
|
, ncurses
|
||||||
, xmlrpc_c
|
, jsonRpcSupport ? true, nlohmann_json
|
||||||
, nlohmann_json
|
, xmlRpcSupport ? true, xmlrpc_c
|
||||||
, xmlRpcSupport ? true
|
|
||||||
, jsonRpcSupport ? true
|
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
inherit (lib) optional;
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "jesec-rtorrent";
|
pname = "jesec-rtorrent";
|
||||||
version = "0.9.8-r14";
|
version = "0.9.8-r15";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jesec";
|
owner = "jesec";
|
||||||
repo = "rtorrent";
|
repo = "rtorrent";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-AbjzNIha3MkCZi6MuyUfPx9r3zeXeTUzkbD7uHB85lo=";
|
hash = "sha256-yYOw8wsiQd478JijLgPtEWsw2/ewd46re+t9D705rmk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libtorrent curl ncurses ]
|
cmake
|
||||||
++ optional xmlRpcSupport xmlrpc_c
|
];
|
||||||
++ optional jsonRpcSupport nlohmann_json;
|
|
||||||
|
buildInputs = [
|
||||||
|
curl
|
||||||
|
libtorrent
|
||||||
|
ncurses
|
||||||
|
]
|
||||||
|
++ lib.optional jsonRpcSupport nlohmann_json
|
||||||
|
++ lib.optional xmlRpcSupport xmlrpc_c;
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DUSE_RUNTIME_CA_DETECTION=NO"
|
||||||
|
]
|
||||||
|
++ lib.optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO"
|
||||||
|
++ lib.optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO";
|
||||||
|
|
||||||
cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ]
|
|
||||||
++ optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"
|
|
||||||
++ optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO";
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkInputs = [ gtest ];
|
checkInputs = [
|
||||||
|
gtest
|
||||||
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace src/main.cc \
|
substituteInPlace src/main.cc \
|
||||||
@ -51,7 +59,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)";
|
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)";
|
||||||
homepage = "https://github.com/jesec/rtorrent";
|
homepage = "https://github.com/jesec/rtorrent";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ winterqt ];
|
maintainers = with maintainers; [ winterqt AndersonTorres ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user