mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
rPackages.rJava: set JAVA_HOME, fixes darwin (#355931)
This commit is contained in:
commit
5083ec8877
@ -1286,6 +1286,10 @@ let
|
|||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
|
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
|
||||||
export JAVA_HOME=${pkgs.jdk}
|
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}\"))"
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user