[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/22: gnu: Add ocaml-js-of-ocaml.
From: |
guix-commits |
Subject: |
22/22: gnu: Add ocaml-js-of-ocaml. |
Date: |
Sun, 13 Jun 2021 11:16:23 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit d9e14697fd967770ce30fb54ce127ec521fc43f7
Author: divoplade <d@divoplade.fr>
AuthorDate: Tue Jun 1 20:23:25 2021 +0000
gnu: Add ocaml-js-of-ocaml.
* gnu/packages/ocaml.scm (ocaml-js-of-ocaml): New variable.
Co-Authored-By: pukkamustard <pukkamustard@posteo.net>
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 765c021..dcfe8ce 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -61,6 +61,7 @@
#:use-module (gnu packages maths)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages node)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -6951,3 +6952,43 @@ Drawing takes place in a separate window that is created
when
Graphics.open_graph is called. This library used to be distributed with OCaml
up to OCaml 4.08.")
(license license:lgpl2.1+)))
+
+(define-public js-of-ocaml
+ (package
+ (name "js-of-ocaml")
+ (version "3.9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ocsigen/js_of_ocaml")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00hdjaj94j3nc6f6wbbpx59h4yc79siphs34i1hry11r56paaqyk"))))
+ (build-system dune-build-system)
+ (arguments `(#:test-target "."))
+ (propagated-inputs
+ `(("ocaml-ppxlib" ,ocaml-ppxlib)
+ ("ocaml-uchar" ,ocaml-uchar)
+ ("ocaml-menhir" ,ocaml-menhir)
+ ("ocaml-reactivedata" ,ocaml-reactivedata)
+ ("ocaml-cmdliner" ,ocaml-cmdliner)
+ ("ocaml-lwt" ,ocaml-lwt)
+ ("ocaml-tyxml" ,ocaml-tyxml)
+ ("ocaml-re" ,ocaml-re)
+ ("ocaml-uutf" ,ocaml-uutf)
+ ("ocaml-graphics" ,ocaml-graphics)
+ ("ocaml-yojson" ,ocaml-yojson)))
+ (native-inputs
+ ;; for tests
+ `(("node" ,node)
+ ("ocaml-ppx-expect" ,ocaml-ppx-expect)
+ ("ocaml-num" ,ocaml-num)))
+ (properties `((upstream-name . "js_of_ocaml")))
+ (home-page "https://ocsigen.org/js_of_ocaml/")
+ (synopsis "Compiler from OCaml bytecode to Javascript")
+ (description "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
+It makes it possible to run pure OCaml programs in JavaScript environment like
+browsers and Node.js.")
+ (license license:lgpl2.1+)))
- 07/22: gnu: Add ocaml-fieldslib., (continued)
- 07/22: gnu: Add ocaml-fieldslib., guix-commits, 2021/06/13
- 04/22: gnu: Add ocaml-ppx-enumerate., guix-commits, 2021/06/13
- 01/22: gnu: Add ocaml-ppx-assert., guix-commits, 2021/06/13
- 16/22: gnu: Add ocaml-uri., guix-commits, 2021/06/13
- 08/22: gnu: Add ocaml-ppx-fields-conv., guix-commits, 2021/06/13
- 11/22: gnu: Add ocaml-jst-config., guix-commits, 2021/06/13
- 05/22: gnu: Add ocaml-ppx-js-style., guix-commits, 2021/06/13
- 09/22: gnu: Add ocaml-ppx-optcomp, guix-commits, 2021/06/13
- 14/22: gnu: Add ocaml-ppx-inline-test., guix-commits, 2021/06/13
- 12/22: gnu: Add ocaml-jane-street-headers., guix-commits, 2021/06/13
- 22/22: gnu: Add ocaml-js-of-ocaml.,
guix-commits <=
- 17/22: gnu: Add ocaml-graphics., guix-commits, 2021/06/13
- 15/22: gnu: Add ocaml-angstrom., guix-commits, 2021/06/13
- 20/22: gnu: Add ocaml-ppx-expect., guix-commits, 2021/06/13
- 13/22: gnu: Add ocaml-time-now., guix-commits, 2021/06/13
- 18/22: gnu: Add ocaml-variantslib., guix-commits, 2021/06/13
- 21/22: gnu: ocaml-num: Update to 1.4., guix-commits, 2021/06/13
- 19/22: gnu: Add ocaml-ppx-variants-conv., guix-commits, 2021/06/13