From 7e469caa382f9107aebad147946eeee4ff5062af Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Fri, 27 Feb 2026 08:27:25 +0000 Subject: [PATCH 1/4] darwin.adv_cmds: fix build with llvm 22 --- pkgs/os-specific/darwin/by-name/ad/adv_cmds/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/darwin/by-name/ad/adv_cmds/package.nix b/pkgs/os-specific/darwin/by-name/ad/adv_cmds/package.nix index 3f0e13b38f2a..6ea659f142aa 100644 --- a/pkgs/os-specific/darwin/by-name/ad/adv_cmds/package.nix +++ b/pkgs/os-specific/darwin/by-name/ad/adv_cmds/package.nix @@ -74,8 +74,10 @@ mkAppleDerivation { --replace-fail '/usr/local' "$out" done ''; - - env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; + env.NIX_CFLAGS_COMPILE = lib.join " " [ + "-I${privateHeaders}/include" + "-Wno-error=incompatible-pointer-types" + ]; buildInputs = [ libxo From 29d41a5e41eaeba9ae47b44ab5b7a84aff411841 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Fri, 27 Feb 2026 08:26:38 +0000 Subject: [PATCH 2/4] dbus: fix build with llvm 22 --- pkgs/by-name/db/dbus/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/db/dbus/package.nix b/pkgs/by-name/db/dbus/package.nix index 264f6d944497..2e1f36b7831e 100644 --- a/pkgs/by-name/db/dbus/package.nix +++ b/pkgs/by-name/db/dbus/package.nix @@ -127,6 +127,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonEnable "launchd" stdenv.hostPlatform.isDarwin) (lib.mesonEnable "systemd" enableSystemd) "-Dselinux=disabled" + "-Dc_args=-Wno-error=incompatible-pointer-types" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # D-Bus defaults to launchd-activation on Darwin, but that requires the launch agent be installed. It also breaks From e48514a021aac2255767c189ee4a4afbed0998a1 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Fri, 27 Feb 2026 08:27:05 +0000 Subject: [PATCH 3/4] fontforge: fix build with llvm 22 --- pkgs/by-name/fo/fontforge/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/fo/fontforge/package.nix b/pkgs/by-name/fo/fontforge/package.nix index 4cdcfacbb326..8197a82a0c25 100644 --- a/pkgs/by-name/fo/fontforge/package.nix +++ b/pkgs/by-name/fo/fontforge/package.nix @@ -82,7 +82,12 @@ stdenv.mkDerivation (finalAttrs: { ''; # do not use x87's 80-bit arithmetic, rounding errors result in very different font binaries - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isi686 "-msse2 -mfpmath=sse"; + env.NIX_CFLAGS_COMPILE = lib.join " " ( + [ + "-Wno-error=incompatible-pointer-types" + ] + ++ lib.optional stdenv.hostPlatform.isi686 "-msse2 -mfpmath=sse" + ); strictDeps = true; From 1b539713f395098dcf597451cca1d779e32e7642 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Fri, 27 Feb 2026 08:27:37 +0000 Subject: [PATCH 4/4] gbenchmark: fix build with llvm 22 --- pkgs/by-name/gb/gbenchmark/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gb/gbenchmark/package.nix b/pkgs/by-name/gb/gbenchmark/package.nix index a35f4781dba1..0c9e020871ed 100644 --- a/pkgs/by-name/gb/gbenchmark/package.nix +++ b/pkgs/by-name/gb/gbenchmark/package.nix @@ -52,7 +52,12 @@ stdenv.mkDerivation (finalAttrs: { # # This might be a problem with our Clang, as it does not reproduce # with Xcode, but we just work around it by silencing the warning. - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-c++17-attribute-extensions"; + NIX_CFLAGS_COMPILE = lib.join " " ( + [ + "-Wno-error=c2y-extensions" + ] + ++ lib.optional stdenv.cc.isClang "-Wno-c++17-attribute-extensions" + ); } // lib.optionalAttrs stdenv.hostPlatform.isGnu { # For test:locale_impermeability_test