2020-06-20 22:37:56 -07:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-12-06 15:42:51 -08:00
|
|
|
, cmdliner, cppo, yojson, ppxlib
|
2020-08-07 21:36:44 -07:00
|
|
|
, menhir
|
2017-08-24 10:49:05 -07:00
|
|
|
}:
|
|
|
|
|
2019-09-06 09:02:00 -07:00
|
|
|
buildDunePackage rec {
|
2020-12-06 15:42:51 -08:00
|
|
|
pname = "js_of_ocaml-compiler";
|
|
|
|
version = "3.8.0";
|
|
|
|
useDune2 = true;
|
2017-08-24 10:49:05 -07:00
|
|
|
|
2020-12-06 15:42:51 -08:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
|
|
|
sha256 = "069jyiayxcgwnips3adxb3d53mzd4rrq2783b9fgmsiyzm545lcy";
|
|
|
|
};
|
2017-08-24 10:49:05 -07:00
|
|
|
|
2020-12-06 15:42:51 -08:00
|
|
|
nativeBuildInputs = [ cppo menhir ];
|
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-12-06 15:42:51 -08:00
|
|
|
propagatedBuildInputs = [ yojson ppxlib ];
|
2017-08-24 10:49:05 -07:00
|
|
|
|
2020-12-06 15:42:51 -08: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 10:49:05 -07:00
|
|
|
}
|