From 4e22fe4f6374fea5b9a52b25d52c5296de93dc67 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 23 Jun 2019 18:28:36 -0400 Subject: [PATCH] apple-sdk: add MetalKit --- pkgs/os-specific/darwin/apple-sdk/default.nix | 7 +++++++ pkgs/os-specific/darwin/apple-sdk/frameworks.nix | 2 ++ 2 files changed, 9 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 7c3e3e639679..2e3ae22e0b23 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -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 { diff --git a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix index e55abf9dfb65..03c800b8dae5 100644 --- a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix +++ b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix @@ -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 = [];