From 205e793a9bb65f63c04c76c822b068d60f64b0bf Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 4 Apr 2026 21:22:57 +0100 Subject: [PATCH] ht: fix the build against `gcc-15` Without the chnage the build fails on `master` as https://hydra.nixos.org/build/324508162: ``` evalparse.c: In function 'yyparse': evalparse.c:1340:16: error: too many arguments to function 'yylex'; expected 0, have 1 1340 | yychar = yylex (&yylval); | ^~~~~ ~~~~~~~ In file included from eval.h:49, from evalparse.y:9: lex.h:10:5: note: declared here 10 | int yylex(); | ^~~~~ ``` --- pkgs/by-name/ht/ht/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ht/ht/package.nix b/pkgs/by-name/ht/ht/package.nix index 6e1e3023128a..822c66253825 100644 --- a/pkgs/by-name/ht/ht/package.nix +++ b/pkgs/by-name/ht/ht/package.nix @@ -24,6 +24,11 @@ stdenv.mkDerivation (finalAttrs: { env.NIX_CFLAGS_COMPILE = toString [ "-Wno-narrowing" ]; + configureFlags = [ + # Fails to build on -std=gnu23. + "CFLAGS=-std=gnu17" + ]; + meta = { description = "File editor/viewer/analyzer for executables"; homepage = "https://hte.sourceforge.net";