2019-09-06 17:02:00 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
2020-03-06 06:42:04 +00:00
|
|
|
, ocaml, findlib, cmdliner, dune, cppo, yojson, ocaml-migrate-parsetree
|
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-03-06 06:42:04 +00:00
|
|
|
version = "3.5.2";
|
2017-08-24 18:49:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "js_of_ocaml";
|
|
|
|
rev = version;
|
2020-03-06 06:42:04 +00:00
|
|
|
sha256 = "1fm855iavljx7rf9hii2qb7ky920zv082d9zlcl504by1bxp1yg8";
|
2017-08-24 18:49:05 +01:00
|
|
|
};
|
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib dune cppo ];
|
|
|
|
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 ];
|
2017-08-24 18:49:05 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|