Skip to content

Commit

Permalink
rPackages.rJava: set JAVA_HOME, fixes darwin (NixOS#355931)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedo authored Nov 18, 2024
2 parents 41fce88 + 9543eee commit 5083ec8
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 5083ec8

Please sign in to comment.