tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jesec-rtorrent.rtorrent: 0.9.8-r14 -> 0.9.8-r15
AndersonTorres
4 years ago
335dbeb9
24414aec
+27
-19
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
p2p
jesec-rtorrent
rtorrent.nix
+27
-19
pkgs/tools/networking/p2p/jesec-rtorrent/rtorrent.nix
···
2
2
, stdenv
3
3
, fetchFromGitHub
4
4
, cmake
5
5
+
, curl
5
6
, gtest
6
7
, libtorrent
7
7
-
, curl
8
8
, ncurses
9
9
-
, xmlrpc_c
10
10
-
, nlohmann_json
11
11
-
, xmlRpcSupport ? true
12
12
-
, jsonRpcSupport ? true
9
9
+
, jsonRpcSupport ? true, nlohmann_json
10
10
+
, xmlRpcSupport ? true, xmlrpc_c
13
11
}:
14
14
-
let
15
15
-
inherit (lib) optional;
16
16
-
in
12
12
+
17
13
stdenv.mkDerivation rec {
18
14
pname = "jesec-rtorrent";
19
19
-
version = "0.9.8-r14";
15
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
25
-
sha256 = "sha256-AbjzNIha3MkCZi6MuyUfPx9r3zeXeTUzkbD7uHB85lo=";
21
21
+
hash = "sha256-yYOw8wsiQd478JijLgPtEWsw2/ewd46re+t9D705rmk=";
26
22
};
27
23
28
28
-
nativeBuildInputs = [ cmake ];
29
29
-
buildInputs = [ libtorrent curl ncurses ]
30
30
-
++ optional xmlRpcSupport xmlrpc_c
31
31
-
++ optional jsonRpcSupport nlohmann_json;
24
24
+
nativeBuildInputs = [
25
25
+
cmake
26
26
+
];
32
27
33
33
-
cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ]
34
34
-
++ optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"
35
35
-
++ optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO";
28
28
+
buildInputs = [
29
29
+
curl
30
30
+
libtorrent
31
31
+
ncurses
32
32
+
]
33
33
+
++ lib.optional jsonRpcSupport nlohmann_json
34
34
+
++ lib.optional xmlRpcSupport xmlrpc_c;
35
35
+
36
36
+
cmakeFlags = [
37
37
+
"-DUSE_RUNTIME_CA_DETECTION=NO"
38
38
+
]
39
39
+
++ lib.optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO"
40
40
+
++ lib.optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO";
41
41
+
36
42
37
43
doCheck = true;
38
38
-
checkInputs = [ gtest ];
44
44
+
checkInputs = [
45
45
+
gtest
46
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
54
-
maintainers = with maintainers; [ winterqt ];
62
62
+
maintainers = with maintainers; [ winterqt AndersonTorres ];
55
63
platforms = platforms.linux;
56
64
};
57
65
}