Skip to content

Commit

Permalink
febio-studio: darwin sdk refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Nov 4, 2024
1 parent 08bed55 commit c970f0f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions pkgs/by-name/fe/febio-studio/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
lib,
stdenv,
overrideSDK,
fetchFromGitHub,
cmake,
ninja,
Expand All @@ -10,6 +9,8 @@
qt6Packages,
febio,
glew,
apple-sdk_11,
darwinMinVersionHook,
sshSupport ? true,
openssl,
libssh,
Expand All @@ -23,18 +24,7 @@
withCadFeatures ? false,
}:

let
stdenv' =
if stdenv.hostPlatform.isDarwin then
overrideSDK stdenv {
darwinSdkVersion = "11.0";
darwinMinVersion = "10.15";
}
else
stdenv;
in

stdenv'.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
pname = "febio-studio";
version = "2.7";

Expand Down Expand Up @@ -76,7 +66,11 @@ stdenv'.mkDerivation (finalAttrs: {
]
++ lib.optional tetgenSupport tetgen
++ lib.optional ffmpegSupport ffmpeg
++ lib.optional dicomSupport dcmtk;
++ lib.optional dicomSupport dcmtk
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
(darwinMinVersionHook "10.15")
];

meta = {
description = "FEBio Suite Solver";
Expand Down

0 comments on commit c970f0f

Please sign in to comment.