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 = ''