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.
This commit is contained in:
Randy Eckenrode 2023-09-06 07:48:37 -04:00
parent dba6d77ad2
commit 286e3f3d01
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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;
};