moltenvk: build with the 14.4 SDK

MoltenVK can take advantage of newer Metal features when built with the
latest Darwin SDK.
This commit is contained in:
Randy Eckenrode 2024-09-29 21:54:14 -04:00
parent b0e2c787ba
commit 0cabb33e1d
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9
2 changed files with 5 additions and 18 deletions

View File

@ -3,19 +3,16 @@
stdenv,
fetchFromGitHub,
gitUpdater,
apple-sdk_14,
darwinMinVersionHook,
cereal,
libcxx,
glslang,
simd,
spirv-cross,
spirv-headers,
spirv-tools,
vulkan-headers,
xcbuildHook,
AppKit,
Foundation,
Metal,
QuartzCore,
enableStatic ? stdenv.hostPlatform.isStatic,
# MoltenVK supports using private APIs to implement some Vulkan functionality.
# Applications that use private APIs cant be distributed on the App Store,
@ -31,13 +28,10 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
buildInputs = [
AppKit
Foundation
Metal
QuartzCore
apple-sdk_14
cereal
(darwinMinVersionHook "10.15")
glslang
simd
spirv-cross
spirv-headers
spirv-tools

View File

@ -172,14 +172,7 @@ impure-cmds // appleSourcePackages // chooseLibs // {
lsusb = callPackage ../os-specific/darwin/lsusb { };
moltenvk = callPackage ../os-specific/darwin/moltenvk {
stdenv = pkgs.overrideSDK stdenv {
darwinMinVersion = "10.15";
darwinSdkVersion = "12.3";
};
inherit (apple_sdk.frameworks) AppKit Foundation Metal QuartzCore;
inherit (apple_sdk.libs) simd;
};
moltenvk = callPackage ../os-specific/darwin/moltenvk { };
openwith = callPackage ../os-specific/darwin/openwith { };