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

39 lines
1.2 KiB
Nix
Raw Normal View History

# NOTE: this is rakshava's version of libtorrent, used mainly by rtorrent
# This is NOT libtorrent-rasterbar, used by Deluge, qbitttorent, and others
2019-03-04 23:19:37 +00:00
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig
, libtool, autoconf, automake, cppunit
, openssl, libsigcxx, zlib }:
2015-09-14 19:48:12 +01:00
stdenv.mkDerivation rec {
2019-07-20 02:26:40 +01:00
pname = "libtorrent";
version = "0.13.8";
src = fetchFromGitHub {
owner = "rakshasa";
2019-07-20 02:26:40 +01:00
repo = pname;
2018-08-04 14:31:05 +01:00
rev = "v${version}";
2019-07-20 02:26:40 +01:00
sha256 = "1h5y6ab3gs20yyprdfwcw8fh1c6czs4yrdj0kf54d2vp9qwz685r";
};
2019-03-04 23:19:37 +00:00
patches = [
(fetchpatch {
name = "openssl_1_1.patch";
url = https://github.com/rakshasa/libtorrent/commit/7b29b6bd2547e72e22b9b7981df27092842d2a10.patch;
sha256 = "0nrh2f9bvi1p0gnsck2gzkgd5dd91yk26gcrhrj2f7wh1d4m0pdd";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libtool autoconf automake cppunit openssl libsigcxx zlib ];
preConfigure = "./autogen.sh";
2015-09-14 19:48:12 +01:00
meta = with stdenv.lib; {
2019-07-20 02:26:40 +01:00
homepage = "https://github.com/rakshasa/libtorrent";
2015-09-14 19:48:12 +01:00
description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code";
2018-04-04 02:31:13 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ ebzzry codyopel ];
};
}