diff options
author | Ivan Babrou <github@ivan.computer> | 2021-05-13 19:50:31 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-20 09:19:32 -0700 |
commit | 274ec210155dd6051628a9b7e6b5583736ef486a (patch) | |
tree | 0a92ae37ef66ad82699d7e031a6bd3c58f6983a0 /pkgs/development/libraries/gsl | |
parent | 14f3686af1dc4f2cb34b1445125df8241639746b (diff) |
gsl: cap MACOSX_DEPLOYMENT_TARGET at 10.16
Diffstat (limited to 'pkgs/development/libraries/gsl')
-rw-r--r-- | pkgs/development/libraries/gsl/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gsl/default.nix b/pkgs/development/libraries/gsl/default.nix index 04c8bcbbbecc6..2dc47a93be3cd 100644 --- a/pkgs/development/libraries/gsl/default.nix +++ b/pkgs/development/libraries/gsl/default.nix @@ -8,6 +8,10 @@ stdenv.mkDerivation rec { sha256 = "1a460zj9xmbgvcymkdhqh313c4l29mn9cffbi5vf33x3qygk70mp"; }; + preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then '' + MACOSX_DEPLOYMENT_TARGET=10.16 + '' else null; + # do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html) NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma"; |