mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +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,
|
fetchFromGitHub,
|
||||||
cmake,
|
cmake,
|
||||||
curl,
|
curl,
|
||||||
darwin,
|
apple-sdk,
|
||||||
fftwSinglePrec,
|
fftwSinglePrec,
|
||||||
netcdf,
|
netcdf,
|
||||||
pcre,
|
pcre,
|
||||||
|
@ -34,8 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
NIX_CFLAGS_COMPILE =
|
NIX_CFLAGS_COMPILE =
|
||||||
lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration "
|
lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration "
|
||||||
+ lib.optionalString (
|
+ lib.optionalString (
|
||||||
stdenv.hostPlatform.isDarwin
|
stdenv.hostPlatform.isDarwin && lib.versionOlder apple-sdk.version "13.3"
|
||||||
&& lib.versionOlder (darwin.apple_sdk.MacOSX-SDK.version or darwin.apple_sdk.sdk.version) "13.3"
|
|
||||||
) "-D__LAPACK_int=int";
|
) "-D__LAPACK_int=int";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue