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