diff options
author | Bruno Rodrigues <bruno@brodrigues.co> | 2024-06-19 15:33:34 +0200 |
---|---|---|
committer | Bruno Rodrigues <bruno@brodrigues.co> | 2024-06-19 15:33:34 +0200 |
commit | e74b624e0bf413f2aedd9a9ebfbe60ffef888a69 (patch) | |
tree | ce7e4404c3f3daf88e68ce39ae7e8475fce813ca /pkgs/development/r-modules/default.nix | |
parent | af5fe07d3c07f5d6b19dcce27d6261b29040b92e (diff) |
rPackages.nearfar: fixed build
Diffstat (limited to 'pkgs/development/r-modules/default.nix')
-rw-r--r-- | pkgs/development/r-modules/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index ef32f8b09c178..4ec3931b6b92b 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1507,6 +1507,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"; |