diff --git a/pkgs/by-name/mp/mpv-unwrapped/package.nix b/pkgs/by-name/mp/mpv-unwrapped/package.nix index 4333d1ce35f5..924f515fff27 100644 --- a/pkgs/by-name/mp/mpv-unwrapped/package.nix +++ b/pkgs/by-name/mp/mpv-unwrapped/package.nix @@ -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 ''