mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #303458 from Kupac/fix_rawrr
rPackages.rawrr: make mono available
This commit is contained in:
commit
e5ed14a659
@ -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 New Issue
Block a user