Skip to content

Commit

Permalink
rPackages.rJava: fixed build on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues committed Nov 14, 2024
1 parent 9956df1 commit 9543eee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/r-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"))"
'';
});

Expand Down

0 comments on commit 9543eee

Please sign in to comment.