1 { lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator, stdio, R
11 minimumOCamlVersion = "4.08";
13 src = fetchFromGitHub {
17 sha256 = "10is2s148kfh3g0pwniyzp5mh48k57ldvn8gm86469zvgxyij1ri";
20 # Without the following patch, stub generation fails with:
21 # > Fatal error: exception (Failure "not supported: osVersion")
23 substituteInPlace stubgen/stubgen.ml --replace \
24 'failwithf "not supported: %s" name ()' \
25 'sprintf "(* not supported: %s *)" name'
26 substituteInPlace lib/config/discover.ml --replace \
30 # This currently fails with dune
33 nativeBuildInputs = [ pkg-config R ];
34 buildInputs = [ dune-configurator stdio R ];
37 checkInputs = [ alcotest ];
40 # This has been broken by the update to R 4.2.0 (#171597)
42 description = "OCaml bindings for the R interpreter";
43 inherit (src.meta) homepage;
44 license = lib.licenses.gpl3;
45 maintainers = [ lib.maintainers.bcdarwin ];