![Malo Bourgon](/assets/img/avatar_default.png)
where none of the executables match the package's `name` or `pname`, and one of the executables is the obvious `mainProgram`.
30 lines
783 B
Nix
30 lines
783 B
Nix
{ lib, fetchurl, buildDunePackage
|
|
, cmdliner, yojson, ppxlib
|
|
, menhir, menhirLib
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "js_of_ocaml-compiler";
|
|
version = "4.0.0";
|
|
useDune2 = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
|
|
sha256 = "sha256:0pj9jjrmi0xxrzmygv4b5whsibw1jxy3wgibmws85x5jwlczh0nz";
|
|
};
|
|
|
|
nativeBuildInputs = [ menhir ];
|
|
buildInputs = [ cmdliner ppxlib ];
|
|
|
|
configurePlatforms = [];
|
|
propagatedBuildInputs = [ menhirLib yojson ];
|
|
|
|
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";
|
|
};
|
|
}
|