mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
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:
parent
dba6d77ad2
commit
286e3f3d01
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user