28 lines
791 B
Nix
28 lines
791 B
Nix
{ lib, fetchurl, buildDunePackage
|
|
, cmdliner, yojson, ppxlib, findlib
|
|
, menhir, menhirLib, sedlex
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "js_of_ocaml-compiler";
|
|
version = "5.4.0";
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
|
hash = "sha256-8SFd4TOGf+/bFuJ5iiJe4ERkaaV0Yq8N7r3SLSqNO5Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ menhir ];
|
|
buildInputs = [ cmdliner ppxlib ];
|
|
|
|
propagatedBuildInputs = [ menhirLib yojson findlib sedlex ];
|
|
|
|
meta = {
|
|
description = "Compiler from OCaml bytecode to Javascript";
|
|
homepage = "https://ocsigen.org/js_of_ocaml/";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
mainProgram = "js_of_ocaml";
|
|
};
|
|
}
|