diff --git a/pkgs/by-name/ti/tilem/gcc15-fix.patch b/pkgs/by-name/ti/tilem/gcc15-fix.patch new file mode 100644 index 000000000000..6a76170739cf --- /dev/null +++ b/pkgs/by-name/ti/tilem/gcc15-fix.patch @@ -0,0 +1,12 @@ +Fix call to zero-argument tilem_macro_new(), which GCC 15 rejects because the declaration takes no parameters. +--- a/gui/macro.c ++++ b/gui/macro.c +@@ -70,7 +70,7 @@ + tilem_macro_finalize(emu->macro); + + /* Then allocate a new one */ +- emu->macro = tilem_macro_new(emu); ++ emu->macro = tilem_macro_new(); + } + + /* Add an action to the macro. The action could be : diff --git a/pkgs/by-name/ti/tilem/package.nix b/pkgs/by-name/ti/tilem/package.nix index eed7018514df..5bc6a6468d19 100644 --- a/pkgs/by-name/ti/tilem/package.nix +++ b/pkgs/by-name/ti/tilem/package.nix @@ -27,7 +27,10 @@ stdenv.mkDerivation (finalAttrs: { libticables2 libticalcs2 ]; - patches = [ ./gcc14-fix.patch ]; + patches = [ + ./gcc14-fix.patch + ./gcc15-fix.patch + ]; env.NIX_CFLAGS_COMPILE = toString [ "-lm" ]; meta = { homepage = "http://lpg.ticalc.org/prj_tilem/";