2016-10-15 16:32:17 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, ppx_deriving, camlp4,
|
2016-01-01 17:38:30 +01:00
|
|
|
cmdliner, tyxml, reactivedata, cppo, which, base64}:
|
2014-05-28 22:04:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-05-30 17:45:20 +02:00
|
|
|
name = "js_of_ocaml-2.7";
|
2014-05-28 22:04:40 +02:00
|
|
|
src = fetchurl {
|
2016-05-30 17:45:20 +02:00
|
|
|
url = https://github.com/ocsigen/js_of_ocaml/archive/2.7.tar.gz;
|
|
|
|
sha256 = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj";
|
2014-05-28 22:04:40 +02:00
|
|
|
};
|
2016-01-06 15:13:56 +01:00
|
|
|
|
2016-10-15 16:32:17 +02:00
|
|
|
buildInputs = [ ocaml findlib menhir ocsigen_deriving ppx_deriving
|
2016-01-01 17:38:30 +01:00
|
|
|
cmdliner tyxml reactivedata cppo which base64];
|
2015-06-25 00:57:16 +02:00
|
|
|
propagatedBuildInputs = [ ocaml_lwt camlp4 ];
|
2014-05-28 22:04:40 +02:00
|
|
|
|
2016-05-30 17:45:20 +02:00
|
|
|
patches = [ ./Makefile.conf.diff ];
|
2014-05-28 22:04:40 +02:00
|
|
|
|
|
|
|
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;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-05-28 22:04:40 +02:00
|
|
|
maintainers = [
|
2014-11-23 12:23:06 +01:00
|
|
|
maintainers.gal_bolle
|
2014-05-28 22:04:40 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|