mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
a12cbb6ddb
Without the change updater run fails as: error: function 'anonymous lambda' called with unexpected argument 'tagPrefix'
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
# Note: this is rakshasa's version of libtorrent, used mainly by rtorrent.
|
|
# *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc.
|
|
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoconf-archive
|
|
, autoreconfHook
|
|
, cppunit
|
|
, libsigcxx
|
|
, openssl
|
|
, pkg-config
|
|
, zlib
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rakshasa-libtorrent";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rakshasa";
|
|
repo = "libtorrent";
|
|
rev = "v${version}";
|
|
hash = "sha256-MDLAp7KFmVvHL+haWVYwWG8gnLkTh6g19ydRkbu9cIs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf-archive
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cppunit
|
|
libsigcxx
|
|
openssl
|
|
zlib
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/rakshasa/libtorrent";
|
|
description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ ebzzry codyopel thiagokokada ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|