From e3dd4d0319cfddabbe615775b23ac709763b5e71 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sat, 3 Jan 2026 12:47:33 +0800 Subject: [PATCH] ecl: only apply gcc15 compat patches for gcc Because the default C version of clang is not synchronized with gcc, to avoid further propagation of overriding CFLAGS to downstream packages, only apply gcc15 compat patches when the compiler is gcc. Therefore, it can be compiled with clang as well. Follow up for pr #476147. Co-authored-by: Aleksana --- pkgs/development/compilers/ecl/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/ecl/default.nix b/pkgs/development/compilers/ecl/default.nix index 9d42368f724d..9f7394d52ab6 100644 --- a/pkgs/development/compilers/ecl/default.nix +++ b/pkgs/development/compilers/ecl/default.nix @@ -56,6 +56,8 @@ stdenv.mkDerivation rec { url = "https://raw.githubusercontent.com/sagemath/sage/9.2/build/pkgs/ecl/patches/write_error.patch"; sha256 = "0hfxacpgn4919hg0mn4wf4m8r7y592r4gw7aqfnva7sckxi6w089"; }) + ] + ++ lib.optionals stdenv.cc.isGNU [ # Fix gcc15 compat for downstream packages e.g. sage # error: ‘bool’ cannot be defined via ‘typedef’ (fetchpatch {