We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9956df1 commit 9543eeeCopy full SHA for 9543eee
pkgs/development/r-modules/default.nix
@@ -1286,6 +1286,10 @@ let
1286
preConfigure = ''
1287
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
1288
export JAVA_HOME=${pkgs.jdk}
1289
+ substituteInPlace R/zzz.R.in \
1290
+ --replace-fail ".onLoad <- function(libname, pkgname) {" \
1291
+ ".onLoad <- function(libname, pkgname) {
1292
+ Sys.setenv(\"JAVA_HOME\" = Sys.getenv(\"JAVA_HOME\", unset = \"${pkgs.jdk}\"))"
1293
'';
1294
});
1295
0 commit comments