mpv: fix cross compilation

This commit is contained in:
rnhmjoj
2022-08-29 00:16:14 +02:00
parent 2e7c3920a0
commit 0b3ec7fbc8
+4
View File
@@ -100,6 +100,10 @@ in stdenv.mkDerivation rec {
NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext "
+ lib.optionalString stdenv.isDarwin "-framework CoreFoundation";
# These flags are not supported and cause the build
# to fail, even when cross compilation itself works.
dontAddWafCrossFlags = true;
wafConfigureFlags = [
"--enable-libmpv-shared"
"--enable-manpage-build"