mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
50 lines
1.1 KiB
Nix
50 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.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LexiFi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ZDlVJLw9xKFTz1NR5sGiw3WnEmMyNQy69Vt9zkw0fPA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|