2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, libtorrent, ncurses, pkgconfig, libsigcxx, curl
|
|
|
|
, zlib, openssl }:
|
|
|
|
|
2011-07-18 14:34:46 +00:00
|
|
|
let
|
2012-06-16 14:15:46 +00:00
|
|
|
version = "0.9.2";
|
2011-07-18 14:34:46 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rtorrent-${version}";
|
2008-02-23 12:11:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-07-18 14:34:46 +00:00
|
|
|
url = "http://libtorrent.rakshasa.no/downloads/rtorrent-${version}.tar.gz";
|
2012-06-16 14:15:46 +00:00
|
|
|
sha256 = "5c8f8c780bee376afce3c1cde2f5ecb928f40bac23b2b8171deed5cf3c888c3d";
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libtorrent ncurses pkgconfig libsigcxx curl zlib openssl ];
|
2011-07-18 14:34:46 +00:00
|
|
|
|
2011-12-06 20:44:31 +00:00
|
|
|
postInstall = ''
|
2012-06-16 14:15:46 +00:00
|
|
|
mkdir -p $out/share/man/man1 $out/share/rtorrent
|
2011-12-06 20:44:31 +00:00
|
|
|
mv doc/rtorrent.1 $out/share/man/man1/rtorrent.1
|
2012-06-16 14:15:46 +00:00
|
|
|
mv doc/rtorrent.rc $out/share/rtorrent/rtorrent.rc
|
2011-12-06 20:44:31 +00:00
|
|
|
'';
|
2011-09-24 12:46:24 +00:00
|
|
|
|
2008-02-23 12:11:27 +00:00
|
|
|
meta = {
|
2011-07-18 14:34:46 +00:00
|
|
|
homepage = "http://libtorrent.rakshasa.no/";
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "An ncurses client for libtorrent, ideal for use with screen or dtach";
|
2011-07-18 14:34:46 +00:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2008-02-23 12:11:27 +00:00
|
|
|
};
|
2010-07-28 11:55:54 +00:00
|
|
|
}
|