2014-10-14 13:04:19 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4,
|
2014-10-15 11:13:58 +02:00
|
|
|
cmdliner, tyxml, reactivedata}:
|
2014-05-28 22:04:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-10-14 13:10:08 +02:00
|
|
|
name = "js_of_ocaml-2.5";
|
2014-05-28 22:04:40 +02:00
|
|
|
src = fetchurl {
|
2014-10-14 13:04:19 +02:00
|
|
|
url = https://github.com/ocsigen/js_of_ocaml/archive/2.5.tar.gz;
|
|
|
|
sha256 = "1prm08nf8szmd3p13ysb0yx1cy6lr671bnwsp25iny8hfbs39sjv";
|
2014-05-28 22:04:40 +02:00
|
|
|
};
|
|
|
|
|
2014-11-23 12:23:06 +01:00
|
|
|
buildInputs = [ocaml findlib menhir ocsigen_deriving
|
2015-06-25 00:57:16 +02:00
|
|
|
cmdliner tyxml reactivedata];
|
|
|
|
propagatedBuildInputs = [ ocaml_lwt camlp4 ];
|
2014-05-28 22:04:40 +02:00
|
|
|
|
|
|
|
patches = [ ./Makefile.conf.diff ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2014-11-23 12:23:06 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-28 22:04:40 +02:00
|
|
|
homepage = http://ocsigen.org/js_of_ocaml/;
|
|
|
|
description = "Compiler of OCaml bytecode to Javascript. It makes it possible to run Ocaml programs in a Web browser";
|
2014-11-23 12:23:06 +01:00
|
|
|
license = licenses.lgpl2;
|
2014-05-28 22:04:40 +02:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
2014-11-23 12:23:06 +01:00
|
|
|
maintainers.gal_bolle
|
2014-05-28 22:04:40 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|