
ocamlPackages.base_quickcheck: 0.17.0 → 0.17.1 ocamlPackages.optcomp: 0.17.0 → 0.17.1 ocamlPackages.ppx_bench: 0.17.0 → 0.17.1 ocamlPackages.ppx_bin_prot: 0.17.0 → 0.17.1 ocamlPackages.ppx_deriving: 6.0.3 → 6.1.0 ocamlPackages.ppx_deriving_qcheck: 0.6 → 0.7 ocamlPackages.ppx_deriving_yaml: 0.3.0 → 0.4.1 ocamlPackages.ppx_deriving_yojson: 3.9.0 → 3.10.0 ocamlPackages.ppx_diff: 0.17.0 → 0.17.1 ocamlPackages.ppx_expect: 0.17.2 → 0.17.3 ocamlPackages.ppx_globalize: 0.17.0 → 0.17.2 ocamlPackages.ppx_inline_test: 0.17.0 → 0.17.1 ocamlPackages.ppx_let: 0.17.0 → 0.17.1 ocamlPackages.ppx_stable: 0.17.0 → 0.17.1 ocamlPackages.ppx_tydi: 0.17.0 → 0.17.1 ocamlPackages.ppx_typeprep_conv: 0.17.0 → 0.17.1 ocamlPackages.ppx_variants_conv: 0.17.0 → 0.17.1 ocamlPackages.sexp_conv: 0.17.0 → 0.17.1 ocamlPackages.sexp_message: 0.17.2 → 0.17.4 reason: 3.15.0 → 3.16.0 ocamlPackages.bisect_ppx: make compatible with ppxlib 0.36 ocamlPackages.config: make compatible with ppxlib 0.36 ocamlPackages.lwt_ppx: make compatible with ppxlib 0.36 ocamlPackages.melange: make compatible with ppxlib 0.36 ocamlPackages.ppx_bitstring: make compatible with ppxlib 0.36 ocamlPackages.ppx_repr: make compatible with ppxlib 0.36 ocamlPackages.bistro: mark as broken ocamlPackages.dream-html: mark as broken ocamlPackages.ocsigen-ppx-rpc: mark as broken ocamlPackages.ppx_deriving_cmdliner: mark as broken ocamlPackages.reason-react-ppx: mark as broken
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
buildDunePackage,
|
|
ocaml,
|
|
lib,
|
|
ppxlib,
|
|
fetchFromGitHub,
|
|
ojs,
|
|
js_of_ocaml-compiler,
|
|
nodejs,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "gen_js_api";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LexiFi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-baK+/y0s08hHC8/+P7RKOboFnALQpndxBMuhI1WKf2o=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.11";
|
|
|
|
propagatedBuildInputs = [
|
|
ojs
|
|
ppxlib
|
|
];
|
|
nativeCheckInputs = [
|
|
js_of_ocaml-compiler
|
|
nodejs
|
|
];
|
|
doCheck = lib.versionAtLeast ocaml.version "4.13" && !(lib.versionAtLeast ppxlib.version "0.36");
|
|
|
|
meta = {
|
|
homepage = "https://github.com/LexiFi/gen_js_api";
|
|
description = "Easy OCaml bindings for JavaScript libraries";
|
|
longDescription = ''
|
|
gen_js_api aims at simplifying the creation of OCaml bindings for
|
|
JavaScript libraries. Authors of bindings write OCaml signatures for
|
|
JavaScript libraries and the tool generates the actual binding code with a
|
|
combination of implicit conventions and explicit annotations.
|
|
|
|
gen_js_api is to be used with the js_of_ocaml compiler.
|
|
'';
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.bcc32 ];
|
|
};
|
|
}
|