From d116c4ddfbf4ae13be355a1285bc8beaed6ae2ba Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Sat, 3 Jan 2026 15:38:23 +0100 Subject: [PATCH] exatorrent: fix build with gcc15 --- pkgs/by-name/ex/exatorrent/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ex/exatorrent/package.nix b/pkgs/by-name/ex/exatorrent/package.nix index e9b3be4104b9..0893501f2a9d 100644 --- a/pkgs/by-name/ex/exatorrent/package.nix +++ b/pkgs/by-name/ex/exatorrent/package.nix @@ -63,6 +63,11 @@ buildGoModule (finalAttrs: { "-extldflags '-static'" ]; + # Fix build with GCC 15 + # from vendor/github.com/anacrolix/go-libutp/callbacks.go:4: + # ./utp_types.h:120:15: error: two or more data types in declaration specifiers + env.NIX_CFLAGS_COMPILE = "-std=gnu17"; + buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ stdenv.cc.libc.static ];