Unverified Commit 286e3f3d authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

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.
parent dba6d77a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
  };