rPackages.cn_farms: fix build

This commit is contained in:
László Kupcsik
2025-04-24 14:50:36 +02:00
parent cf13f52b70
commit fdca3f8e35

View File

@@ -1787,6 +1787,15 @@ let
'';
});
cn_farms = old.cn_farms.overrideAttrs (attrs: {
postPatch = ''
# https://developer.r-project.org/blosxom.cgi/R-devel/NEWS/2025/01/08#n2025-01-08
substituteInPlace "src/sparse_farms.c" \
--replace-fail "Calloc" "R_Calloc" \
--replace-fail "Free" "R_Free"
'';
});
PICS = old.PICS.overrideAttrs (attrs: {
postPatch = ''
# https://developer.r-project.org/blosxom.cgi/R-devel/NEWS/2025/01/08#n2025-01-08