nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2014-10-14 12:04:19 +01:00
{stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4,
2016-01-01 16:38:30 +00:00
cmdliner, tyxml, reactivedata, cppo, which, base64}:
2014-05-28 21:04:40 +01:00
let camlp4_patch = fetchurl {
url = "https://github.com/FlorentBecker/js_of_ocaml/commit/3b511c5bb777d5049c49d7a04c01f142de7096b9.patch";
sha256 = "c92eda8be504cd41eb242166fc815af496243b63d4d21b169f5b62ec5ace2d39";
};
in
2014-05-28 21:04:40 +01:00
stdenv.mkDerivation {
2016-01-01 16:38:30 +00:00
name = "js_of_ocaml-2.6";
2014-05-28 21:04:40 +01:00
src = fetchurl {
2016-01-01 16:38:30 +00:00
url = https://github.com/ocsigen/js_of_ocaml/archive/2.6.tar.gz;
sha256 = "0q34lrn70dvz41m78bwgriyq6dxk97g8gcyg80nvxii4jp86dw61";
2014-05-28 21:04:40 +01:00
};
2014-11-23 11:23:06 +00:00
buildInputs = [ocaml findlib menhir ocsigen_deriving
2016-01-01 16:38:30 +00:00
cmdliner tyxml reactivedata cppo which base64];
propagatedBuildInputs = [ ocaml_lwt camlp4 ];
2014-05-28 21:04:40 +01:00
patches = [ ./Makefile.conf.diff camlp4_patch ];
2014-05-28 21:04:40 +01:00
createFindlibDestdir = true;
2014-11-23 11:23:06 +00:00
meta = with stdenv.lib; {
2014-05-28 21:04:40 +01: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 11:23:06 +00:00
license = licenses.lgpl2;
2014-05-28 21:04:40 +01:00
platforms = ocaml.meta.platforms;
maintainers = [
2014-11-23 11:23:06 +00:00
maintainers.gal_bolle
2014-05-28 21:04:40 +01:00
];
};
}