From 6946bc8c994abb5d5a4bb8e80e635f1364f3e2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 10 Jan 2026 11:46:40 +0100 Subject: [PATCH] dhex: fix build for gcc>=15 Upstream has been notified by email about the required change, and were positive, but I think we should patch it ourself in the meantime. --- pkgs/by-name/dh/dhex/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/dh/dhex/package.nix b/pkgs/by-name/dh/dhex/package.nix index 80cafbb765a2..845541bafbfe 100644 --- a/pkgs/by-name/dh/dhex/package.nix +++ b/pkgs/by-name/dh/dhex/package.nix @@ -14,6 +14,11 @@ stdenv.mkDerivation rec { sha256 = "06y4lrp29f2fh303ijk1xhspa1d4x4dm6hnyw3dd8szi3k6hnwsj"; }; + postPatch = '' + # Fix build for gcc>=15 + substituteInPlace ./output.h --replace-fail 'void initcolors();' 'void initcolors(tOutput*);' + ''; + buildInputs = [ ncurses ]; installPhase = ''