nixpkgs/pkgs/tools/networking/p2p/rtorrent/default.nix

31 lines
956 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libtorrent, ncurses, pkgconfig, libsigcxx, curl
, zlib, openssl, xmlrpc_c
}:
stdenv.mkDerivation rec {
2015-09-14 18:48:12 +00:00
name = "rtorrent-${version}";
version = "0.9.6";
src = fetchurl {
2015-09-14 18:48:12 +00:00
url = "http://rtorrent.net/downloads/${name}.tar.gz";
sha256 = "03jvzw9pi2mhcm913h8qg0qw9gwjqc6lhwynb1yz1y163x7w4s8y";
};
buildInputs = [ libtorrent ncurses pkgconfig libsigcxx curl zlib openssl xmlrpc_c ];
configureFlags = [ "--with-xmlrpc-c" "--with-posix-fallocate" ];
# postInstall = ''
# mkdir -p $out/share/man/man1 $out/share/rtorrent
# mv doc/rtorrent.1 $out/share/man/man1/rtorrent.1
# mv doc/rtorrent.rc $out/share/rtorrent/rtorrent.rc
# '';
2015-09-14 18:48:12 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/rakshasa/rtorrent/;
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach";
2015-09-14 18:48:12 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ simons ebzzry ];
};
}