-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rPackages.rJava: set JAVA_HOME, fixes darwin #355931
Conversation
1237e5f
to
fcec0ce
Compare
@ofborg build rPackages.rJava |
fcec0ce
to
9543eee
Compare
Other than that, it works on x86_64-linux. It's a bit weird that it doesn't work on darwin despite the explicit
|
I'm surprised it even worked with the env-var only being set at build time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to click submit review... Anyway it's merged now and after all, it's working.
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}\"))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This belongs to postPatch
.
Sets JAVA_HOME as it was empty. This was not an issue on linux, but caused rPackages.rJava not to load on Darwin.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.