about summary refs log tree commit diff
path: root/pkgs/tools/networking/p2p/libtorrent-jesec/default.nix
blob: 3858d87e7edf7c4377186cbd1c1addaa1db0a75f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
  };
}