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,
fetchFromGitHub,
fetchpatch,
darwin,
overrideSDK,
qt6,
pkg-config,
vulkan-headers,
@ -24,25 +22,7 @@
nix-update-script,
}:
let
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: {
stdenv.mkDerivation (finalAttrs: {
pname = "moonlight-qt";
version = "6.1.0";
@ -89,13 +69,6 @@ stdenv'.mkDerivation (finalAttrs: {
qt6.qtwayland
wayland
libdrm
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
AVFoundation
AppKit
AudioUnit
Cocoa
VideoToolbox
];
qmakeFlags = [ "CONFIG+=disable-prebuilts" ];