Merge pull request #291258 from Kupac/fix_pathfindR

rPackages.pathfindR: fix missing java
This commit is contained in:
Justin Bedő 2024-03-01 20:06:24 +11:00 committed by GitHub
commit 72f01b23cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1048,6 +1048,15 @@ let
'';
});
pathfindR = old.pathfindR.overrideAttrs (attrs: {
postPatch = ''
substituteInPlace "R/zzz.R" \
--replace-fail " check_java_version()" " Sys.setenv(JAVA_HOME = \"${lib.getBin pkgs.jre_minimal}\"); check_java_version()"
substituteInPlace "R/active_snw_search.R" \
--replace-fail "system(paste0(\"java" "system(paste0(\"${lib.getBin pkgs.jre_minimal}/bin/java"
'';
});
pbdZMQ = old.pbdZMQ.overrideAttrs (attrs: {
postPatch = lib.optionalString stdenv.isDarwin ''
for file in R/*.{r,r.in}; do