From 3fa636bc15ebdb84ac2a0c479ea412ae90cce860 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Sat, 16 Nov 2024 09:59:11 -0800 Subject: [PATCH] libtorrent: fix cross-compilation The configure script for libtorrent will attempt to compile and run a small program during the build, which won't work when we are building with a compiler that produces a program that won't run natively on the build platform. --- pkgs/by-name/li/libtorrent/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/li/libtorrent/package.nix b/pkgs/by-name/li/libtorrent/package.nix index 97affd79850c..14198f003bbd 100644 --- a/pkgs/by-name/li/libtorrent/package.nix +++ b/pkgs/by-name/li/libtorrent/package.nix @@ -38,6 +38,8 @@ stdenv.mkDerivation rec { zlib ]; + configureFlags = [ "--enable-aligned=yes" ]; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; enableParallelBuilding = true;