2015-12-06 18:36:28 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig
|
|
|
|
, libtool, autoconf, automake, cppunit
|
|
|
|
, libtorrent, ncurses, libsigcxx, curl
|
2014-08-14 23:06:59 +02:00
|
|
|
, zlib, openssl, xmlrpc_c
|
2015-12-06 18:36:28 +01:00
|
|
|
|
|
|
|
# This no longer works
|
|
|
|
, colorSupport ? false
|
2013-12-09 22:11:30 +01:00
|
|
|
}:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2013-12-09 22:11:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-09-14 20:48:12 +02:00
|
|
|
name = "rtorrent-${version}";
|
|
|
|
version = "0.9.6";
|
2008-02-23 13:11:27 +01:00
|
|
|
|
2015-12-06 18:36:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakshasa";
|
|
|
|
repo = "rtorrent";
|
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0iyxmjr1984vs7hrnxkfwgrgckacqml0kv4bhj185w9bhjqvgfnf";
|
2008-02-23 13:11:27 +01:00
|
|
|
};
|
|
|
|
|
2015-12-06 18:36:28 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libtool autoconf automake cppunit
|
|
|
|
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 17:17:22 +01:00
|
|
|
configureFlags = [ "--with-xmlrpc-c" "--with-posix-fallocate" ];
|
2011-07-18 16:34:46 +02:00
|
|
|
|
2015-12-06 18:36:28 +01: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 14:46:24 +02:00
|
|
|
|
2015-09-14 20:48:12 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-12-07 22:30:55 +01:00
|
|
|
inherit (src.meta) homepage;
|
2015-09-14 20:48:12 +02:00
|
|
|
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach";
|
2011-07-18 16:34:46 +02:00
|
|
|
|
2015-09-14 20:48:12 +02:00
|
|
|
platforms = platforms.unix;
|
2016-05-16 22:30:20 +02:00
|
|
|
maintainers = with maintainers; [ ebzzry codyopel ];
|
2008-02-23 13:11:27 +01:00
|
|
|
};
|
2010-07-28 13:55:54 +02:00
|
|
|
}
|