mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
moonlight-qt: refactor darwin support
The new darwin SDK will be automatically propagated by qt6.
This commit is contained in:
parent
870ac8293a
commit
2fe2ceb07e
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user