From e81cf4f892acf7d2dae7c922a22f11d896f1a557 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode <randy@largeandhighquality.com> Date: Fri, 19 Jul 2024 19:30:29 -0400 Subject: [PATCH] buzztrax: fix build with clang 16 After the libxml2 2.12 update, buzztrax fails to build due to an incompatible function pointer error. This error has not been fixed upstream, so just suppress it. --- pkgs/applications/audio/buzztrax/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/buzztrax/default.nix b/pkgs/applications/audio/buzztrax/default.nix index 38bb5d68e69b..30961d5b320a 100644 --- a/pkgs/applications/audio/buzztrax/default.nix +++ b/pkgs/applications/audio/buzztrax/default.nix @@ -62,7 +62,9 @@ stdenv.mkDerivation { ]; # 'g_memdup' is deprecated: Use 'g_memdup2' instead - env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations" + # Suppress incompatible function pointer error in clang due to libxml2 2.12 const changes + + lib.optionalString stdenv.cc.isClang " -Wno-error=incompatible-function-pointer-types"; meta = with lib; { description = "Buzztrax is a modular music composer for Linux";