Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 42 lines 1.1 kB view raw
1{ buildDunePackage 2, lib 3, ppxlib 4, fetchFromGitHub 5, ojs 6, js_of_ocaml-compiler 7, nodejs 8}: 9 10buildDunePackage rec { 11 pname = "gen_js_api"; 12 version = "1.1.1"; 13 duneVersion = "3"; 14 15 src = fetchFromGitHub { 16 owner = "LexiFi"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "sha256-0FKKYPbSBza/Q6oZniq/UHi5zBjD/i7j5ds3ZDWkBTs="; 20 }; 21 22 minimalOCamlVersion = "4.11"; 23 24 propagatedBuildInputs = [ ojs ppxlib ]; 25 nativeCheckInputs = [ js_of_ocaml-compiler nodejs ]; 26 doCheck = true; 27 28 meta = { 29 homepage = "https://github.com/LexiFi/gen_js_api"; 30 description = "Easy OCaml bindings for JavaScript libraries"; 31 longDescription = '' 32 gen_js_api aims at simplifying the creation of OCaml bindings for 33 JavaScript libraries. Authors of bindings write OCaml signatures for 34 JavaScript libraries and the tool generates the actual binding code with a 35 combination of implicit conventions and explicit annotations. 36 37 gen_js_api is to be used with the js_of_ocaml compiler. 38 ''; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.bcc32 ]; 41 }; 42}