Merge pull request #303458 from Kupac/fix_rawrr
rPackages.rawrr: make mono available
This commit is contained in:
commit
e5ed14a659
1 changed files with 17 additions and 0 deletions
|
@ -1108,6 +1108,23 @@ let
|
|||
};
|
||||
});
|
||||
|
||||
rawrr = old.rawrr.overrideAttrs (attrs: {
|
||||
postPatch = ''
|
||||
substituteInPlace "R/zzz.R" "R/dotNetAssembly.R" --replace-warn \
|
||||
"Sys.which('mono')" "'${lib.getBin pkgs.mono}/bin/mono'"
|
||||
|
||||
substituteInPlace "R/dotNetAssembly.R" --replace-warn \
|
||||
"Sys.which(\"xbuild\")" "\"${lib.getBin pkgs.mono}/bin/xbuild\""
|
||||
|
||||
substituteInPlace "R/dotNetAssembly.R" --replace-warn \
|
||||
"cmd <- ifelse(Sys.which(\"msbuild\") != \"\", \"msbuild\", \"xbuild\")" \
|
||||
"cmd <- \"${lib.getBin pkgs.mono}/bin/xbuild\""
|
||||
|
||||
substituteInPlace "R/rawrr.R" --replace-warn \
|
||||
"Sys.which(\"mono\")" "\"${lib.getBin pkgs.mono}/bin/mono\""
|
||||
'';
|
||||
});
|
||||
|
||||
rpf = old.rpf.overrideAttrs (attrs: {
|
||||
patchPhase = "patchShebangs configure";
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue