summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/ocaml/js_of_ocaml/default.nix')
-rw-r--r--pkgs/development/tools/ocaml/js_of_ocaml/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/default.nix b/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
new file mode 100644
index 00000000000..9989afdefc4
--- /dev/null
+++ b/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
@@ -0,0 +1,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 camlp4 reactivedata];
+  propagatedBuildInputs = [ ocaml_lwt ];
+
+  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
+    ];
+  };
+}