summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
blob: eaabd50059d3c0b73620bb97bface56b3120894d (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
28
{stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4,
 cmdliner, tyxml, reactivedata}:

stdenv.mkDerivation {
  name = "js_of_ocaml-2.5";
  src = fetchurl {
    url = https://github.com/ocsigen/js_of_ocaml/archive/2.5.tar.gz;
    sha256 = "1prm08nf8szmd3p13ysb0yx1cy6lr671bnwsp25iny8hfbs39sjv";
    };
  
  buildInputs = [ocaml findlib menhir ocsigen_deriving
                 cmdliner tyxml reactivedata];
  propagatedBuildInputs = [ ocaml_lwt camlp4 ];

  patches = [ ./Makefile.conf.diff ];  

  createFindlibDestdir = true;

  meta = with stdenv.lib; {
    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";
    license = licenses.lgpl2;
    platforms = ocaml.meta.platforms;
    maintainers = [
      maintainers.gal_bolle
    ];
  };
}