diff mbox series

[bug#73466,v2,07/15] gnu: Add ocaml-zarith-stubs-js.

Message ID 4b7fd4a59735605714556adb5fd9b45512e24a1e.1727335349.git.herman@rimm.ee
State New
Headers show
Series [bug#73466,v2,01/15] gnu: Add ocaml-ppx-yojson-conv-lib. | expand

Commit Message

Herman Rimm Sept. 26, 2024, 7:23 a.m. UTC
* gnu/packages/ocaml.scm (ocaml-zarith-stubs-js): Add variable.

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

Patch

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")