2020-06-21 06:37:56 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
|
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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "js_of_ocaml-compiler";
|
2020-12-08 20:50:14 +00:00
|
|
|
version = "3.7.1";
|
2020-06-21 06:37:56 +01:00
|
|
|
useDune2 = true;
|
2017-08-24 18:49:05 +01:00
|
|
|
|
2020-06-21 06:37:56 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
2020-12-08 20:50:14 +00:00
|
|
|
sha256 = "0i0smhvsfx2ydmbyg5ai5cgqsfnng8rkcvys4i3fa55cw24aknrn";
|
2017-08-24 18:49:05 +01:00
|
|
|
};
|
|
|
|
|
2020-08-08 05:36:44 +01:00
|
|
|
nativeBuildInputs = [ ocaml findlib dune_2 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-03-06 06:42:04 +00:00
|
|
|
propagatedBuildInputs = [ yojson ocaml-migrate-parsetree ];
|
2017-08-24 18:49:05 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Compiler from OCaml bytecode to Javascript";
|
2019-09-06 17:02:00 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-06-21 06:37:56 +01:00
|
|
|
homepage = "https://ocsigen.org/js_of_ocaml/";
|
2017-08-24 18:49:05 +01:00
|
|
|
};
|
|
|
|
}
|