rPackages.rJava: fixed build on Darwin

This commit is contained in:
Bruno Rodrigues 2024-11-14 18:50:52 +00:00
parent 9956df1047
commit 9543eeea3a

View File

@ -1286,6 +1286,10 @@ let
preConfigure = ''
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
export JAVA_HOME=${pkgs.jdk}
substituteInPlace R/zzz.R.in \
--replace-fail ".onLoad <- function(libname, pkgname) {" \
".onLoad <- function(libname, pkgname) {
Sys.setenv(\"JAVA_HOME\" = Sys.getenv(\"JAVA_HOME\", unset = \"${pkgs.jdk}\"))"
'';
});