febio: darwin sdk refactor

(cherry picked from commit 08bed55e78)
This commit is contained in:
Austin Horstman 2024-11-01 13:01:45 -05:00 committed by github-actions[bot]
parent 813a215654
commit 753ebc23ad

View File

@ -1,23 +1,19 @@
{
lib,
stdenv,
overrideSDK,
fetchFromGitHub,
fetchpatch2,
substituteAll,
apple-sdk_11,
cmake,
darwinMinVersionHook,
ninja,
zlib,
darwin,
mklSupport ? true,
mkl,
}:
let
stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
pname = "FEBio";
version = "4.7";
@ -57,9 +53,8 @@ stdenv'.mkDerivation (finalAttrs: {
[ zlib ]
++ lib.optionals mklSupport [ mkl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreGraphics
darwin.apple_sdk.frameworks.CoreVideo
darwin.apple_sdk.frameworks.Accelerate
apple-sdk_11
(darwinMinVersionHook "10.15")
];
meta = {