mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Add a derivation for js_of_ocaml
This commit is contained in:
parent
b5c621062d
commit
3245b97000
3 changed files with 40 additions and 0 deletions
10
pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff
Normal file
10
pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff
Normal 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
|
||||
|
||||
####
|
||||
|
28
pkgs/development/tools/ocaml/js_of_ocaml/default.nix
Normal file
28
pkgs/development/tools/ocaml/js_of_ocaml/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue