1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{ lib
, stdenv
, autoconf-archive
, autoreconfHook
, cppunit
, curl
, fetchFromGitHub
, installShellFiles
, libsigcxx
, libtool
, libtorrent
, ncurses
, openssl
, pkg-config
, xmlrpc_c
, zlib
, nixosTests
, unstableGitUpdater
}:
stdenv.mkDerivation {
pname = "rakshasa-rtorrent";
version = "0.9.8-unstable-2023-03-16";
src = fetchFromGitHub {
owner = "rakshasa";
repo = "rtorrent";
rev = "1da0e3476dcabbf74b2e836d6b4c37b4d96bde09";
hash = "sha256-OXOZSMuNAU+VGwNyyfzcmkTRjDJq9HsKUNxZDYpSvFQ=";
};
outputs = [ "out" "man" ];
passthru = {
inherit libtorrent;
};
nativeBuildInputs = [
autoconf-archive
autoreconfHook
installShellFiles
pkg-config
];
buildInputs = [
cppunit
curl
libsigcxx
libtool
libtorrent
ncurses
openssl
xmlrpc_c
zlib
];
configureFlags = [
"--with-xmlrpc-c"
"--with-posix-fallocate"
];
passthru = {
updateScript = unstableGitUpdater { tagPrefix = "v"; };
tests = {
inherit (nixosTests) rtorrent;
};
};
enableParallelBuilding = true;
postInstall = ''
installManPage doc/old/rtorrent.1
install -Dm644 doc/rtorrent.rc-example -t $out/share/doc/rtorrent/rtorrent.rc
'';
meta = {
homepage = "https://rakshasa.github.io/rtorrent/";
description = "Ncurses client for libtorrent, ideal for use with screen, tmux, or dtach";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ebzzry codyopel thiagokokada ];
platforms = lib.platforms.unix;
mainProgram = "rtorrent";
};
}
|