2022-03-28 06:02:57 +00:00
|
|
|
{ buildDunePackage
|
|
|
|
, lib
|
|
|
|
, ppxlib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ojs
|
|
|
|
, js_of_ocaml-compiler
|
|
|
|
, nodejs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gen_js_api";
|
2022-10-12 02:03:28 +00:00
|
|
|
version = "1.1.1";
|
2022-11-29 16:30:00 +00:00
|
|
|
duneVersion = "3";
|
2022-03-28 06:02:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LexiFi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-12 02:03:28 +00:00
|
|
|
sha256 = "sha256-0FKKYPbSBza/Q6oZniq/UHi5zBjD/i7j5ds3ZDWkBTs=";
|
2022-03-28 06:02:57 +00:00
|
|
|
};
|
|
|
|
|
2022-11-09 19:41:22 +00:00
|
|
|
minimalOCamlVersion = "4.11";
|
2022-03-28 06:02:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ojs ppxlib ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ js_of_ocaml-compiler nodejs ];
|
2022-03-28 06:02:57 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|