From 286e3f3d01f3461ebe003693a539df6edaef7cc5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 6 Sep 2023 07:48:37 -0400 Subject: [PATCH] R: fix build with clang 16 on x86_64-darwin R fails to build on x86_64-darwin because it uses `__cospi`, `__sinpi`, and `__tanpi`. The should be defined in the 10.12 SDK, but the `math.h` header used in the source-based SDK is too old and lacks declarations for these functions. --- pkgs/top-level/all-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ea2269aa8a6..71f5d3a00077 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26214,13 +26214,13 @@ with pkgs; ### DEVELOPMENT / R MODULES - R = callPackage ../applications/science/math/R { + R = darwin.apple_sdk_11_0.callPackage ../applications/science/math/R { # TODO: split docs into a separate output texLive = texlive.combine { inherit (texlive) scheme-small inconsolata helvetic texinfo fancyvrb cm-super rsfs; }; withRecommendedPackages = false; - inherit (darwin.apple_sdk.frameworks) Cocoa Foundation; + inherit (darwin.apple_sdk_11_0.frameworks) Cocoa Foundation; inherit (darwin) libobjc; };