My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix

29 lines
791 B

{ lib, fetchurl, buildDunePackage
, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
, menhir
}:
buildDunePackage rec {
pname = "js_of_ocaml-compiler";
version = "3.7.1";
useDune2 = true;
src = fetchurl {
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
sha256 = "0i0smhvsfx2ydmbyg5ai5cgqsfnng8rkcvys4i3fa55cw24aknrn";
};
nativeBuildInputs = [ ocaml findlib dune_2 cppo menhir ];
buildInputs = [ cmdliner ];
configurePlatforms = [];
propagatedBuildInputs = [ yojson ocaml-migrate-parsetree ];
meta = {
description = "Compiler from OCaml bytecode to Javascript";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://ocsigen.org/js_of_ocaml/";
};
}