From 08bed55e78daec2fb4cbdc78779cfcbd900c92ad Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 1 Nov 2024 13:01:45 -0500 Subject: [PATCH] febio: darwin sdk refactor --- pkgs/by-name/fe/febio/package.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/fe/febio/package.nix b/pkgs/by-name/fe/febio/package.nix index 3f70ad711d76..5ba5c377f0ad 100644 --- a/pkgs/by-name/fe/febio/package.nix +++ b/pkgs/by-name/fe/febio/package.nix @@ -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 = {