zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / li / libtorrent / package.nix
blob1b5ff8e0c9d37e4f1601f06b57ed7d6613d062b2
1 # Note: this is rakshasa's version of libtorrent, used mainly by rtorrent.
2 # *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc.
4   lib,
5   stdenv,
6   fetchFromGitHub,
7   autoconf-archive,
8   autoreconfHook,
9   cppunit,
10   openssl,
11   pkg-config,
12   zlib,
13   gitUpdater,
16 stdenv.mkDerivation rec {
17   pname = "rakshasa-libtorrent";
18   version = "0.15.1";
20   src = fetchFromGitHub {
21     owner = "rakshasa";
22     repo = "libtorrent";
23     rev = "v${version}";
24     hash = "sha256-ejDne7vaV+GYP6M0n3VAEva4UHuxRGwfc2rgxf7U/EM=";
25   };
27   nativeBuildInputs = [
28     autoconf-archive
29     autoreconfHook
30     pkg-config
31   ];
33   buildInputs = [
34     cppunit
35     openssl
36     zlib
37   ];
39   configureFlags = [ "--enable-aligned=yes" ];
41   passthru.updateScript = gitUpdater { rev-prefix = "v"; };
43   enableParallelBuilding = true;
45   meta = {
46     homepage = "https://github.com/rakshasa/libtorrent";
47     description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
48     license = lib.licenses.gpl2Plus;
49     maintainers = with lib.maintainers; [
50       ebzzry
51       codyopel
52       thiagokokada
53     ];
54     platforms = lib.platforms.unix;
55   };