ocamlPackages.janeStreet: 0.13 → 0.14

ocamlPackages.biocaml: 0.10.1 → 0.11.1

ocamlPackages.bistro: fix for Core 0.14

ocamlPackages.js_of_ocaml: 3.7.0 → 3.7.1

ocamlPackages.ocaml-r: 0.2.0 → 0.4.0

ocamlPackages.phylogenetics: 2020-01-25 → 2020-11-23

Co-authored-by: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>
This commit is contained in:
Vincent Laporte
2020-12-18 21:03:56 +01:00
committed by Vincent Laporte
co-authored by sternenseemann
parent c2e90c4433
commit b6f7f1f673
12 changed files with 925 additions and 634 deletions
@@ -1,14 +1,20 @@
{ lib, fetchFromGitHub, buildDunePackage, pkg-config, configurator, stdio, R }:
{ lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator, stdio, R
, alcotest
}:
buildDunePackage rec {
pname = "ocaml-r";
version = "0.2.0";
version = "0.4.0";
useDune2 = true;
minimumOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "pveber";
repo = pname;
rev = "v${version}";
sha256 = "09gljccwjsw9693m1hm9hcyvgp3p2fvg3cfn18yyidpc2f81a4fy";
sha256 = "10is2s148kfh3g0pwniyzp5mh48k57ldvn8gm86469zvgxyij1ri";
};
# Without the following patch, stub generation fails with:
@@ -17,9 +23,14 @@ buildDunePackage rec {
substituteInPlace stubgen/stubgen.ml --replace \
'failwithf "not supported: %s" name ()' \
'sprintf "(* not supported: %s *)" name'
substituteInPlace lib/config/discover.ml --replace \
' libRmath"' '"'
'';
buildInputs = [ configurator pkg-config R stdio ];
buildInputs = [ pkg-config R dune-configurator stdio ];
doCheck = true;
checkInputs = [ alcotest ];
meta = {
description = "OCaml bindings for the R interpreter";