moonlight-qt: refactor darwin support

The new darwin SDK will be automatically propagated by qt6.
This commit is contained in:
Zhong Jianxin 2024-10-31 22:03:14 +08:00
parent 870ac8293a
commit 2fe2ceb07e

View File

@ -3,8 +3,6 @@
lib, lib,
fetchFromGitHub, fetchFromGitHub,
fetchpatch, fetchpatch,
darwin,
overrideSDK,
qt6, qt6,
pkg-config, pkg-config,
vulkan-headers, vulkan-headers,
@ -24,25 +22,7 @@
nix-update-script, nix-update-script,
}: }:
let stdenv.mkDerivation (finalAttrs: {
inherit (darwin.apple_sdk_12_3.frameworks)
AVFoundation
AppKit
AudioUnit
Cocoa
VideoToolbox
;
stdenv' =
if stdenv.hostPlatform.isDarwin then
overrideSDK stdenv {
darwinMinVersion = "11.0";
darwinSdkVersion = "12.3";
}
else
stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
pname = "moonlight-qt"; pname = "moonlight-qt";
version = "6.1.0"; version = "6.1.0";
@ -89,13 +69,6 @@ stdenv'.mkDerivation (finalAttrs: {
qt6.qtwayland qt6.qtwayland
wayland wayland
libdrm libdrm
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
AVFoundation
AppKit
AudioUnit
Cocoa
VideoToolbox
]; ];
qmakeFlags = [ "CONFIG+=disable-prebuilts" ]; qmakeFlags = [ "CONFIG+=disable-prebuilts" ];