diff --git a/pkgs/by-name/ml/mlterm/package.nix b/pkgs/by-name/ml/mlterm/package.nix index aad72f74a164..6bf34c6aa950 100644 --- a/pkgs/by-name/ml/mlterm/package.nix +++ b/pkgs/by-name/ml/mlterm/package.nix @@ -181,8 +181,12 @@ stdenv.mkDerivation (finalAttrs: { --replace "-m 4755 -o root" " " ''; - env = lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types"; + env = { + NIX_CFLAGS_COMPILE = + (lib.optionalString stdenv.cc.isClang "-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types ") + # GCC15 defaults to C23 which is stricter about prototypes + # There are upstream fixes, but they are not in 3.9.4 release + + (lib.optionalString stdenv.cc.isGNU " -std=c17 "); }; configureFlags = [