apple-sdk: add MetalKit

This commit is contained in:
Matthew Bauer 2019-06-23 18:28:36 -04:00
parent 79c0e740a7
commit 4e22fe4f63
2 changed files with 9 additions and 0 deletions

View File

@ -211,6 +211,13 @@ in rec {
--replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage"
'';
});
MetalKit = stdenv.lib.overrideDerivation super.MetalKit (drv: {
installPhase = drv.installPhase + ''
mkdir -p $out/include/simd
cp ${lib.getDev sdk}/include/simd/*.h $out/include/simd/
'';
});
};
bareFrameworks = stdenv.lib.mapAttrs framework (import ./frameworks.nix {

View File

@ -74,6 +74,8 @@ with frameworks; with libs; {
MediaAccessibility = [ CF CoreGraphics CoreText QuartzCore ];
MediaToolbox = [ AudioToolbox AudioUnit CF CoreMedia ];
Metal = [];
MetalKit = [ ModelIO Metal ];
ModelIO = [ ];
NetFS = [ CF ];
OSAKit = [ Carbon ];
OpenAL = [];