R = 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;                                     
    };                                                                                                                                                                                                                                         
    withRecommendedPackages = false;                                                                                     
    inherit (darwin.apple_sdk.frameworks) Cocoa Foundation;                                                              
    inherit (darwin) libobjc;                                                                                            
    jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731                                      
  };