Add a derivation for js_of_ocaml

This commit is contained in:
Florent Becker 2014-05-28 22:04:40 +02:00 committed by Michael Raskin
parent b5c621062d
commit 3245b97000
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- old/Makefile.conf 2014-05-19 16:53:09.263564921 +0200
+++ new/Makefile.conf 2014-05-19 16:53:42.213152994 +0200
@@ -1,6 +1,6 @@
# Where binaries are installed:
-BINDIR := /usr/local/bin
+BINDIR := $(out)/bin
####

View File

@ -0,0 +1,28 @@
{stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving}:
stdenv.mkDerivation {
name = "js_of_ocaml";
src = fetchurl {
url = https://github.com/ocsigen/js_of_ocaml/archive/2.2.tar.gz;
sha256 = "1cp81gpvyxgvzxg0vzyl8aa2zvcixp6m433w8zjifrg6vb7lhp97";
};
buildInputs = [ocaml findlib ocaml_lwt menhir ocsigen_deriving];
patches = [ ./Makefile.conf.diff ];
createFindlibDestdir = true;
meta = {
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 = "LGPL";
platforms = ocaml.meta.platforms;
maintainers = [
stdenv.lib.maintainers.gal_bolle
];
};
}

View File

@ -3337,6 +3337,8 @@ let
gmetadom = callPackage ../development/ocaml-modules/gmetadom { };
js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { };
lablgl = callPackage ../development/ocaml-modules/lablgl { };
lablgtk = callPackage ../development/ocaml-modules/lablgtk {