From 2fe2ceb07ea6ca336e77840e2a3fdddb9038d8f3 Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Thu, 31 Oct 2024 22:03:14 +0800 Subject: [PATCH] moonlight-qt: refactor darwin support The new darwin SDK will be automatically propagated by qt6. --- pkgs/by-name/mo/moonlight-qt/package.nix | 29 +----------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/pkgs/by-name/mo/moonlight-qt/package.nix b/pkgs/by-name/mo/moonlight-qt/package.nix index ed73a1279a46..08463c37ca9d 100644 --- a/pkgs/by-name/mo/moonlight-qt/package.nix +++ b/pkgs/by-name/mo/moonlight-qt/package.nix @@ -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" ];