mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
gmt: adjust for new Darwin SDK pattern
This commit is contained in:
parent
35937cd7d0
commit
259dc71e68
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
fetchFromGitHub,
|
||||
cmake,
|
||||
curl,
|
||||
darwin,
|
||||
apple-sdk,
|
||||
fftwSinglePrec,
|
||||
netcdf,
|
||||
pcre,
|
||||
|
@ -34,8 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
NIX_CFLAGS_COMPILE =
|
||||
lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration "
|
||||
+ lib.optionalString (
|
||||
stdenv.hostPlatform.isDarwin
|
||||
&& lib.versionOlder (darwin.apple_sdk.MacOSX-SDK.version or darwin.apple_sdk.sdk.version) "13.3"
|
||||
stdenv.hostPlatform.isDarwin && lib.versionOlder apple-sdk.version "13.3"
|
||||
) "-D__LAPACK_int=int";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue