Commit 205e793a authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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();
      |     ^~~~~
```
parent 4d312c06
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";