Subject: [PATCH v2 07/15] gnu: Add ocaml-zarith-stubs-js.

From: Herman Rimm <[email-masked]>
Date: Thu, 26 Sep 2024 09:23:37 +0200

* gnu/packages/ocaml.scm (ocaml-zarith-stubs-js): Add variable.

Change-Id: I8149b23d39e06996933b681234a970beb0ca0b78
---
 gnu/packages/ocaml.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3218dae5a9..db46488258 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1906,6 +1906,30 @@ (define-public ocaml-zarith
 for speed and space economy.")
     (license license:lgpl2.1+))) ; with an exception
 
+(define-public ocaml-zarith-stubs-js
+  (package
+    (name "ocaml-zarith-stubs-js")
+    (version "0.17.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/janestreet/zarith_stubs_js")
+              (commit (string-append "v" version))))
+       (sha256
+        (base32
+          "07anr6r4chbpgd7c5ixfqgqr99kb202bd7q350hdqynrn7v6rn20"))))
+    (build-system dune-build-system)
+    (arguments (list #:tests? #f)) ; File unavailable.
+    (properties `((upstream-name . "zarith_stubs_js")))
+    (native-inputs (list ocaml-ppx-jane))
+    (home-page "https://github.com/janestreet/zarith_stubs_js")
+    (synopsis "Javascripts stubs for the Zarith library")
+    (description
+      "This library contains no ocaml code, but instead implements all
+of the Zarith C stubs in Javascript for use in Js_of_ocaml.")
+    (license license:expat)))
+
 (define-public ocaml-frontc
   (package
     (name "ocaml-frontc")
-- 
2.45.2