blob: 71e77b24ce4be1e2eaf890df9975cb37bca939ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, fetchFromGitHub, buildDunePackage, pkg-config, configurator, stdio, R }:
buildDunePackage rec {
pname = "ocaml-r";
version = "0.2.0";
src = fetchFromGitHub {
owner = "pveber";
repo = pname;
rev = "v${version}";
sha256 = "09gljccwjsw9693m1hm9hcyvgp3p2fvg3cfn18yyidpc2f81a4fy";
};
# Without the following patch, stub generation fails with:
# > Fatal error: exception (Failure "not supported: osVersion")
preConfigure = ''
substituteInPlace stubgen/stubgen.ml --replace \
'failwithf "not supported: %s" name ()' \
'sprintf "(* not supported: %s *)" name'
'';
buildInputs = [ configurator pkg-config R stdio ];
meta = {
description = "OCaml bindings for the R interpreter";
inherit (src.meta) homepage;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.bcdarwin ];
};
}
|