[bug#73466,v2,04/15] gnu: Add ocaml-zmq.

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

Commit Message

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

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

Patch

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 580d48e354..b7160cab36 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -73,6 +73,7 @@  (define-module (gnu packages ocaml)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages node)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
@@ -9488,6 +9489,33 @@  (define-public ocaml-guile
 3.0, supporting easy interop between OCaml and GNU Guile Scheme.")
     (license license:gpl3+)))
 
+(define-public ocaml-zmq
+  (package
+    (name "ocaml-zmq")
+    (version "5.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/issuu/ocaml-zmq")
+              (commit version)))
+       (sha256
+        (base32 "0siialyjxr7qhns6g0xi6v4z042y40240z6fkh775fi6q1mhslxh"))))
+    (build-system dune-build-system)
+    (arguments (list #:package "zmq"))
+    (propagated-inputs (list dune-configurator ocaml-odoc zeromq))
+    (native-inputs (list ocaml-async-kernel
+                         ocaml-base
+                         ocaml5.0-eio-main
+                         ocaml-ounit2))
+    (home-page "https://github.com/issuu/ocaml-zmq")
+    (synopsis "OCaml bindings for ZeroMQ 4.x")
+    (description
+     "This library contains basic bindings for ZMQ.  Lwt-aware bindings
+to zmq are available though package zmq-lwt Async aware bindings to zmq
+are available though package zmq-async.")
+    (license license:expat)))
+
 ;;;
 ;;; 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