summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
blob: 888cc51a99db21915da46218378f8a94b56d9ef3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, fetchurl, buildDunePackage
, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
}:

buildDunePackage rec {
	pname = "js_of_ocaml-compiler";
	version = "3.6.0";
	useDune2 = true;

	src = fetchurl {
		url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
		sha256 = "51eaa89c83ef3168ef270bf7997cbc35a747936d3f51aa6fac58fb0323b4cbb0";
	};

	nativeBuildInputs = [ ocaml findlib dune_2 cppo ];
  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/";
	};
}