forked from mirrors/nixpkgs
Merge pull request #121058 from winterqt/init-jesec-rtorrent
rtorrent-jesec: init at 0.9.8-r11
This commit is contained in:
commit
808d88971a
28
pkgs/tools/networking/p2p/libtorrent-jesec/default.nix
Normal file
28
pkgs/tools/networking/p2p/libtorrent-jesec/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, gtest, openssl, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libtorrent-jesec";
|
||||
version = "0.13.8-r1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesec";
|
||||
repo = "libtorrent";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Eh5pMkSe9uO0dPRWDg2BbbRxxuvX9FM2/OReq/61ojc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ openssl zlib ];
|
||||
|
||||
# https://github.com/jesec/libtorrent/issues/1
|
||||
doCheck = false;
|
||||
checkInputs = [ gtest ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code (jesec's fork)";
|
||||
homepage = "https://github.com/jesec/libtorrent";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ winterqt ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
57
pkgs/tools/networking/p2p/rtorrent-jesec/default.nix
Normal file
57
pkgs/tools/networking/p2p/rtorrent-jesec/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, gtest
|
||||
, libtorrent-jesec
|
||||
, curl
|
||||
, ncurses
|
||||
, xmlrpc_c
|
||||
, nlohmann_json
|
||||
, xmlRpcSupport ? true
|
||||
, jsonRpcSupport ? true
|
||||
}:
|
||||
let
|
||||
inherit (lib) optional;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rtorrent-jesec";
|
||||
version = "0.9.8-r10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesec";
|
||||
repo = "rtorrent";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Ge5W1rLaneUA7LxnBuMO/jQlqLOUKFf3gaAAlRr/qeM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libtorrent-jesec curl ncurses ]
|
||||
++ optional xmlRpcSupport xmlrpc_c
|
||||
++ optional jsonRpcSupport nlohmann_json;
|
||||
|
||||
cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ]
|
||||
++ optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"
|
||||
++ optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO";
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ gtest ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace src/main.cc \
|
||||
--replace "/etc/rtorrent/rtorrent.rc" "${placeholder "out"}/etc/rtorrent/rtorrent.rc"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
mkdir -p $out/etc/rtorrent
|
||||
cp $src/doc/rtorrent.rc $out/etc/rtorrent/rtorrent.rc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)";
|
||||
homepage = "https://github.com/jesec/rtorrent";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ winterqt ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -6460,6 +6460,8 @@ in
|
|||
|
||||
libtorrent = callPackage ../tools/networking/p2p/libtorrent { };
|
||||
|
||||
libtorrent-jesec = callPackage ../tools/networking/p2p/libtorrent-jesec { };
|
||||
|
||||
libmpack = callPackage ../development/libraries/libmpack { };
|
||||
|
||||
libiberty = callPackage ../development/libraries/libiberty { };
|
||||
|
@ -8178,6 +8180,8 @@ in
|
|||
|
||||
rtorrent = callPackage ../tools/networking/p2p/rtorrent { };
|
||||
|
||||
rtorrent-jesec = callPackage ../tools/networking/p2p/rtorrent-jesec { };
|
||||
|
||||
rubber = callPackage ../tools/typesetting/rubber { };
|
||||
|
||||
rubocop = callPackage ../development/tools/rubocop { };
|
||||
|
|
Loading…
Reference in a new issue