From 2181bfd0a3c8512fe50a29e1063e5e12bf2669b4 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 24 Dec 2024 00:43:51 +0800 Subject: [PATCH] libmpd: Fix GCC 14 build https://hydra.nixos.org/build/281958201/nixlog/3 Note that this is also needed by latest clang. --- pkgs/by-name/li/libmpd/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/li/libmpd/package.nix b/pkgs/by-name/li/libmpd/package.nix index a509134318d45..c186379cde4ef 100644 --- a/pkgs/by-name/li/libmpd/package.nix +++ b/pkgs/by-name/li/libmpd/package.nix @@ -35,6 +35,10 @@ stdenv.mkDerivation (finalAttrs: { cp -r doc/html $devdoc/share/devhelp/libmpd/doxygen ''; + # Fix GCC 14 build + # https://hydra.nixos.org/build/281958201/nixlog/3 + env.NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion"; + meta = with lib; { description = "Higher level access to MPD functions"; homepage = "https://www.musicpd.org/download/libmpd/";