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
, stdenv
3
, fetchFromGitHub
4
, cmake
0
5
, gtest
6
, libtorrent
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 = "jesec-rtorrent";
19
-
version = "0.9.8-r14";
20
21
src = fetchFromGitHub {
22
owner = "jesec";
23
repo = "rtorrent";
24
rev = "v${version}";
25
-
sha256 = "sha256-AbjzNIha3MkCZi6MuyUfPx9r3zeXeTUzkbD7uHB85lo=";
26
};
27
28
-
nativeBuildInputs = [ cmake ];
29
-
buildInputs = [ libtorrent 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";
0
0
0
0
0
0
0
0
0
0
0
36
37
doCheck = true;
38
-
checkInputs = [ gtest ];
0
0
39
40
prePatch = ''
41
substituteInPlace src/main.cc \
···
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
}
···
2
, stdenv
3
, fetchFromGitHub
4
, cmake
5
+
, curl
6
, gtest
7
, libtorrent
0
8
, ncurses
9
+
, jsonRpcSupport ? true, nlohmann_json
10
+
, xmlRpcSupport ? true, xmlrpc_c
0
0
11
}:
12
+
0
0
13
stdenv.mkDerivation rec {
14
pname = "jesec-rtorrent";
15
+
version = "0.9.8-r15";
16
17
src = fetchFromGitHub {
18
owner = "jesec";
19
repo = "rtorrent";
20
rev = "v${version}";
21
+
hash = "sha256-yYOw8wsiQd478JijLgPtEWsw2/ewd46re+t9D705rmk=";
22
};
23
24
+
nativeBuildInputs = [
25
+
cmake
26
+
];
0
27
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
+
42
43
doCheck = true;
44
+
checkInputs = [
45
+
gtest
46
+
];
47
48
prePatch = ''
49
substituteInPlace src/main.cc \
···
59
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)";
60
homepage = "https://github.com/jesec/rtorrent";
61
license = licenses.gpl2Plus;
62
+
maintainers = with maintainers; [ winterqt AndersonTorres ];
63
platforms = platforms.linux;
64
};
65
}