guix_mirror_bot pushed a commit to branch ocaml-team
in repository guix.
commit d882dbfbd39f3a702ddb8b276c5e9467c67ab622
Author: Jason Conroy <[email protected]>
AuthorDate: Sun Feb 15 15:26:56 2026 -0500
gnu: ocaml5: Add js-of-ocaml-compiler.
* gnu/packages/ocaml5.scm (js-of-ocaml-compiler): New variable.
Change-Id: I9740f70795a8b9a8aa4135cd2ab23954a549c5a1
Signed-off-by: Julien Lepiller <[email protected]>
---
gnu/packages/ocaml5.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index ae7d26d71a..399cff2864 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -56,6 +56,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages libevent)
#:use-module (gnu packages m4)
+ #:use-module (gnu packages node)
#:use-module (gnu packages parallel)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -3630,6 +3631,29 @@ browsers and Node.js.")
;; With static-linking exception
(license license:lgpl2.1+)))
+(define-public js-of-ocaml-compiler
+ (package
+ (inherit %js-of-ocaml-base)
+ (name "ocaml5-js-of-ocaml-compiler")
+ (arguments
+ `(#:package "js_of_ocaml-compiler"
+ #:tests? #f))
+ (propagated-inputs (list ocaml-ppxlib
+ ocaml-menhir
+ ocaml-reactivedata
+ ocaml-cmdliner
+ ocaml-lwt
+ ocaml-sedlex
+ ocaml-re
+ ocaml-yojson))
+ (native-inputs
+ ;; for tests
+ (list node-lts ocaml-ppx-expect ocaml-num))
+ (properties `((upstream-name . "js_of_ocaml")))
+ (home-page "https://ocsigen.org/js_of_ocaml/")
+ (synopsis "Compiler from OCaml bytecode to Javascript (compiler core)")
+ (license license:lgpl2.1+)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar