Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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 ];
};
}