Skip to content

Commit

Permalink
Merge pull request #291258 from Kupac/fix_pathfindR
Browse files Browse the repository at this point in the history
rPackages.pathfindR: fix missing java
  • Loading branch information
jbedo committed Mar 1, 2024
2 parents 13a94ad + 34faa13 commit 72f01b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/r-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72f01b2

Please sign in to comment.