Merge pull request #303458 from Kupac/fix_rawrr

rPackages.rawrr: make mono available
This commit is contained in:
Justin Bedő 2024-04-13 08:05:49 +10:00 committed by GitHub
commit e5ed14a659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";
});