From f3b5c50aefb73551bdfc8db8bb695d30ded7aedd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 23 Mar 2024 09:42:21 -0400 Subject: [PATCH] mplayer: fix build with newer clang Suppress certain warnings that are errors by default with newer versions of clang. --- pkgs/applications/video/mplayer/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/video/mplayer/default.nix b/pkgs/applications/video/mplayer/default.nix index 880ea831f186..0fbfefa27198 100644 --- a/pkgs/applications/video/mplayer/default.nix +++ b/pkgs/applications/video/mplayer/default.nix @@ -176,6 +176,9 @@ stdenv.mkDerivation rec { echo CONFIG_MPEGAUDIODSP=yes >> config.mak ''; + # Fixes compilation with newer versions of clang that make these warnings errors by default. + NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion -Wno-incompatible-function-pointer-types"; + NIX_LDFLAGS = with lib; toString ( optional fontconfigSupport "-lfontconfig" ++ optional fribidiSupport "-lfribidi"