libtorrent: fix cross-compilation (#356537)

This commit is contained in:
Thiago Kenji Okada
2024-11-17 09:43:27 +00:00
committed by GitHub

View File

@@ -1,16 +1,17 @@
# Note: this is rakshasa's version of libtorrent, used mainly by rtorrent. # Note: this is rakshasa's version of libtorrent, used mainly by rtorrent.
# *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc. # *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc.
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, autoconf-archive fetchFromGitHub,
, autoreconfHook autoconf-archive,
, cppunit autoreconfHook,
, libsigcxx cppunit,
, openssl libsigcxx,
, pkg-config openssl,
, zlib pkg-config,
, gitUpdater zlib,
gitUpdater,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@@ -37,6 +38,8 @@ stdenv.mkDerivation rec {
zlib zlib
]; ];
configureFlags = [ "--enable-aligned=yes" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; }; passthru.updateScript = gitUpdater { rev-prefix = "v"; };
enableParallelBuilding = true; enableParallelBuilding = true;
@@ -45,7 +48,11 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/rakshasa/libtorrent"; homepage = "https://github.com/rakshasa/libtorrent";
description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code"; description = "BitTorrent library written in C++ for *nix, with focus on high performance and good code";
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ebzzry codyopel thiagokokada ]; maintainers = with lib.maintainers; [
ebzzry
codyopel
thiagokokada
];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }