2015-12-06 17:36:28 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig
|
|
|
|
, libtool, autoconf, automake, cppunit
|
|
|
|
, libtorrent, ncurses, libsigcxx, curl
|
2014-08-14 22:06:59 +01:00
|
|
|
, zlib, openssl, xmlrpc_c
|
2015-12-06 17:36:28 +00:00
|
|
|
|
|
|
|
# This no longer works
|
|
|
|
, colorSupport ? false
|
2013-12-09 21:11:30 +00:00
|
|
|
}:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2013-12-09 21:11:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-20 02:35:43 +01:00
|
|
|
pname = "rtorrent";
|
|
|
|
version = "0.9.8";
|
2008-02-23 12:11:27 +00:00
|
|
|
|
2015-12-06 17:36:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakshasa";
|
2019-07-20 02:35:43 +01:00
|
|
|
repo = pname;
|
2018-08-04 14:31:43 +01:00
|
|
|
rev = "v${version}";
|
2019-07-20 02:35:43 +01:00
|
|
|
sha256 = "0hcaf1brk402caa7hhlb2r1c93mjzxkm8gb19xfl33gkp3jpf372";
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-12-06 17:36:28 +00:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
libtool autoconf automake cppunit
|
2015-12-06 17:36:28 +00:00
|
|
|
libtorrent ncurses libsigcxx curl zlib openssl xmlrpc_c
|
|
|
|
];
|
|
|
|
|
|
|
|
# Optional patch adds support for custom configurable colors
|
|
|
|
# https://github.com/Chlorm/chlorm_overlay/blob/master/net-p2p/rtorrent/README.md
|
|
|
|
patches = stdenv.lib.optional colorSupport (fetchurl {
|
|
|
|
url = "https://gist.githubusercontent.com/codyopel/a816c2993f8013b5f4d6/raw/b952b32da1dcf14c61820dfcf7df00bc8918fec4/rtorrent-color.patch";
|
|
|
|
sha256 = "00gcl7yq6261rrfzpz2k8bd7mffwya0ifji1xqcvhfw50syk8965";
|
|
|
|
});
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
2015-12-04 16:17:22 +00:00
|
|
|
configureFlags = [ "--with-xmlrpc-c" "--with-posix-fallocate" ];
|
2011-07-18 15:34:46 +01:00
|
|
|
|
2015-12-06 17:36:28 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/man/man1 $out/share/doc/rtorrent
|
|
|
|
mv doc/old/rtorrent.1 $out/share/man/man1/rtorrent.1
|
|
|
|
mv doc/rtorrent.rc $out/share/doc/rtorrent/rtorrent.rc
|
|
|
|
'';
|
2011-09-24 13:46:24 +01:00
|
|
|
|
2015-09-14 19:48:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-04 14:31:43 +01:00
|
|
|
homepage = https://rakshasa.github.io/rtorrent/;
|
2015-09-14 19:48:12 +01:00
|
|
|
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach";
|
2011-07-18 15:34:46 +01:00
|
|
|
|
2015-09-14 19:48:12 +01:00
|
|
|
platforms = platforms.unix;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = with maintainers; [ ebzzry codyopel ];
|
2018-08-04 18:12:54 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|