depot/pkgs/development/ocaml-modules/gen_js_api/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
1.1 KiB
Nix

{ buildDunePackage
, ocaml
, lib
, ppxlib
, fetchFromGitHub
, ojs
, js_of_ocaml-compiler
, nodejs
}:
buildDunePackage rec {
pname = "gen_js_api";
version = "1.1.3";
src = fetchFromGitHub {
owner = "LexiFi";
repo = pname;
rev = "v${version}";
sha256 = "sha256-9xYSxiPKZP7U1wbnw3/FiLhF/JmTA12rlrr4jSynA3k=";
};
minimalOCamlVersion = "4.11";
propagatedBuildInputs = [ ojs ppxlib ];
nativeCheckInputs = [ js_of_ocaml-compiler nodejs ];
doCheck = lib.versionAtLeast ocaml.version "4.13";
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 ];
};
}