Merge pull request #321029 from b-rodrigues/fix_nearfar

rPackages.nearfar: fixed build
This commit is contained in:
Justin Bedő 2024-06-20 07:47:26 +10:00 committed by GitHub
commit c55826ed72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1510,6 +1510,18 @@ let
'';
});
nearfar = let
angrist = fetchurl {
url = "https://raw.githubusercontent.com/joerigdon/nearfar/master/angrist.csv";
hash = "sha256-lb+HMHnRGonc26merFGB0B7Vk1Lk+sIJlay+JtQC8m4=";
};
in old.nearfar.overrideAttrs (attrs: {
postPatch = ''
substituteInPlace "R/nearfar.R" --replace-fail \
'url("https://raw.githubusercontent.com/joerigdon/nearfar/master/angrist.csv")' '"${angrist}"'
'';
});
rstan = old.rstan.overrideAttrs (attrs: {
env = (attrs.env or { }) // {
NIX_CFLAGS_COMPILE = attrs.env.NIX_CFLAGS_COMPILE + " -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION";