
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
57 lines
1.2 KiB
Nix
57 lines
1.2 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,
|
|
openssl,
|
|
pkg-config,
|
|
zlib,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rakshasa-libtorrent";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rakshasa";
|
|
repo = "libtorrent";
|
|
rev = "v${version}";
|
|
hash = "sha256-ejDne7vaV+GYP6M0n3VAEva4UHuxRGwfc2rgxf7U/EM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf-archive
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cppunit
|
|
openssl
|
|
zlib
|
|
];
|
|
|
|
configureFlags = [ "--enable-aligned=yes" ];
|
|
|
|
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;
|
|
};
|
|
}
|