From 0b1a3581144bb74a576282104266df59dc4e4d14 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 29 Jan 2026 21:45:46 +0000 Subject: [PATCH 1/2] thc-ipv6: `fix gcc-15` build Without the chnage the build fails on `master` as https://hydra.nixos.org/build/320117087: thc-ipv6-lib.c: In function 'thc_pcap_function': thc-ipv6-lib.c:127:36: error: too many arguments to function 'thc_open_ipv6'; expected 0, have 1 127 | if (thc_socket < 0) thc_socket = thc_open_ipv6(interface); | ^~~~~~~~~~~~~ ~~~~~~~~~ In file included from thc-ipv6-lib.c:75: thc-ipv6.h:211:23: note: declared here 211 | extern int thc_open_ipv6(); | ^~~~~~~~~~~~~ --- pkgs/by-name/th/thc-ipv6/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/th/thc-ipv6/package.nix b/pkgs/by-name/th/thc-ipv6/package.nix index c00eabd2e9a7..f44334bd3628 100644 --- a/pkgs/by-name/th/thc-ipv6/package.nix +++ b/pkgs/by-name/th/thc-ipv6/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, libpcap, openssl, libnetfilter_queue, @@ -18,6 +19,16 @@ stdenv.mkDerivation rec { sha256 = "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx"; }; + patches = [ + # Fix gcc-15 build failure: + # https://github.com/vanhauser-thc/thc-ipv6/pull/53 + (fetchpatch { + name = "gcc-15.patch"; + url = "https://github.com/vanhauser-thc/thc-ipv6/commit/c9617d5638196bd88336225a6abdfd45c3df0bcf.patch"; + hash = "sha256-4+LmRsDInzzNFHvj8WK+r1fKeoLggQW7yrahC1d6WCs="; + }) + ]; + buildInputs = [ libpcap openssl From 3dd9c8312643fd46b033822bd7b72a198f79967b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 29 Jan 2026 21:47:04 +0000 Subject: [PATCH 2/2] thc-ipv6: enable parallel building --- pkgs/by-name/th/thc-ipv6/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/th/thc-ipv6/package.nix b/pkgs/by-name/th/thc-ipv6/package.nix index f44334bd3628..cd3daa1f7c3c 100644 --- a/pkgs/by-name/th/thc-ipv6/package.nix +++ b/pkgs/by-name/th/thc-ipv6/package.nix @@ -40,6 +40,8 @@ stdenv.mkDerivation rec { "PREFIX=$(out)" ]; + enableParallelBuilding = true; + meta = { description = "IPv6 attack toolkit"; homepage = "https://github.com/vanhauser-thc/thc-ipv6";