mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
febio: darwin sdk refactor
This commit is contained in:
parent
b90f2b68c3
commit
08bed55e78
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user