libsForQt5.phonon: fix build on darwin

This commit is contained in:
Weijia Wang 2023-12-12 02:43:41 +01:00
parent 9c264295e1
commit 97fddea626

View File

@ -50,7 +50,11 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
env.NIX_CFLAGS_COMPILE = "-fPIC";
env.NIX_CFLAGS_COMPILE = toString ([
"-fPIC"
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-error=enum-constexpr-conversion"
]);
cmakeBuildType = if debug then "Debug" else "Release";