2020-06-20 22:37:56 -07:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
|
2017-08-24 10:49:05 -07:00
|
|
|
}:
|
|
|
|
|
2019-09-06 09:02:00 -07:00
|
|
|
buildDunePackage rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "js_of_ocaml-compiler";
|
2020-06-20 22:37:56 -07:00
|
|
|
version = "3.6.0";
|
|
|
|
useDune2 = true;
|
2017-08-24 10:49:05 -07:00
|
|
|
|
2020-06-20 22:37:56 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
|
|
|
sha256 = "51eaa89c83ef3168ef270bf7997cbc35a747936d3f51aa6fac58fb0323b4cbb0";
|
2017-08-24 10:49:05 -07:00
|
|
|
};
|
|
|
|
|
2020-06-20 22:37:56 -07:00
|
|
|
nativeBuildInputs = [ ocaml findlib dune_2 cppo ];
|
2019-10-31 03:16:15 -07:00
|
|
|
buildInputs = [ cmdliner ];
|
2017-08-24 10:49:05 -07:00
|
|
|
|
2019-10-31 03:16:15 -07:00
|
|
|
configurePlatforms = [];
|
2020-03-05 22:42:04 -08:00
|
|
|
propagatedBuildInputs = [ yojson ocaml-migrate-parsetree ];
|
2017-08-24 10:49:05 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Compiler from OCaml bytecode to Javascript";
|
2019-09-06 09:02:00 -07:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-06-20 22:37:56 -07:00
|
|
|
homepage = "https://ocsigen.org/js_of_ocaml/";
|
2017-08-24 10:49:05 -07:00
|
|
|
};
|
|
|
|
}
|