2020-06-21 06:37:56 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-12-20 08:29:44 +00:00
|
|
|
, cmdliner, yojson, ppxlib
|
2021-05-29 14:50:56 +01:00
|
|
|
, menhir, menhirLib
|
2017-08-24 18:49:05 +01:00
|
|
|
}:
|
|
|
|
|
2019-09-06 17:02:00 +01:00
|
|
|
buildDunePackage rec {
|
2020-12-06 23:42:51 +00:00
|
|
|
pname = "js_of_ocaml-compiler";
|
2021-12-20 08:29:44 +00:00
|
|
|
version = "3.11.0";
|
2020-12-06 23:42:51 +00:00
|
|
|
useDune2 = true;
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2020-12-06 23:42:51 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
2021-12-20 08:29:44 +00:00
|
|
|
sha256 = "sha256:0flws9mw0yjfw4d8d3y3k408mivy2xgky70xk1br3iqs4zksz38m";
|
2020-12-06 23:42:51 +00:00
|
|
|
};
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2021-12-20 08:29:44 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
|
|
|
buildInputs = [ cmdliner ppxlib ];
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
configurePlatforms = [];
|
2021-12-20 08:29:44 +00:00
|
|
|
propagatedBuildInputs = [ menhirLib yojson ];
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2020-12-06 23:42:51 +00:00
|
|
|
meta = {
|
|
|
|
description = "Compiler from OCaml bytecode to Javascript";
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://ocsigen.org/js_of_ocaml/";
|
|
|
|
};
|
2017-08-24 18:49:05 +01:00
|
|
|
}
|