2020-06-21 06:37:56 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-03-24 15:09:42 +00:00
|
|
|
, ocaml, cmdliner, cppo, yojson, ppxlib
|
2020-08-08 05:36:44 +01:00
|
|
|
, menhir
|
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-03-24 15:09:42 +00:00
|
|
|
version = "3.9.1";
|
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-03-24 15:09:42 +00:00
|
|
|
sha256 = "0ib551kfsjlp9vr3fk36hrbq7xxyl8bj6vcn3ccr0s370bsmgpm6";
|
2020-12-06 23:42:51 +00:00
|
|
|
};
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2020-12-06 23:42:51 +00:00
|
|
|
nativeBuildInputs = [ cppo menhir ];
|
2019-10-31 10:16:15 +00:00
|
|
|
buildInputs = [ cmdliner ];
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
configurePlatforms = [];
|
2020-12-06 23:42:51 +00:00
|
|
|
propagatedBuildInputs = [ yojson ppxlib ];
|
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
|
|
|
}
|