mpv-unwrapped: fix darwin build (fixes #540682)

This commit is contained in:
éclairevoyant
2026-07-11 10:26:44 -04:00
parent 0e22a80775
commit 1dbdb986bb

View File

@@ -61,6 +61,7 @@
wayland-protocols,
wayland-scanner,
zimg,
llvmPackages,
# Boolean
alsaSupport ? stdenv.hostPlatform.isLinux,
@@ -163,6 +164,8 @@ stdenv.mkDerivation (finalAttrs: {
buildPackages.darwin.sigtool
swift
makeBinaryWrapper
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
]
++ lib.optionals waylandSupport [ wayland-scanner ];
@@ -233,6 +236,9 @@ stdenv.mkDerivation (finalAttrs: {
# ./osdep/mac/swift.h:270:9: fatal error: '.../app_bridge_objc-1.pch' file not found
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin) {
NIX_SWIFTFLAGS_COMPILE = "-disable-bridging-pch";
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
postBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''