GNU bug report logs - #73466
[PATCH 01/16] gnu: Add ocaml-jsonrpc.

Previous Next

Package: guix-patches;

Reported by: Herman Rimm <herman <at> rimm.ee>

Date: Wed, 25 Sep 2024 07:56:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Herman Rimm <herman <at> rimm.ee>
To: 73466 <at> debbugs.gnu.org
Cc: Julien Lepiller <julien <at> lepiller.eu>, pukkamustard <pukkamustard <at> posteo.net>
Subject: [bug#73466] [PATCH v2 10/15] gnu: Add ocaml-json-data-encoding.
Date: Thu, 26 Sep 2024 09:23:40 +0200
* gnu/packages/ocaml.scm (ocaml-json-data-encoding): Add variable.

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index c84a36640b..bf723e9055 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4073,6 +4073,41 @@ (define-public ocaml-uunf
 without a complete in-memory representation.")
     (license license:isc)))
 
+(define-public ocaml-json-data-encoding
+  (package
+    (name "ocaml-json-data-encoding")
+    (version "1.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://gitlab.com/nomadic-labs/data-encoding")
+              (commit (string-append "v" version))))
+       (sha256
+        (base32
+          "1pwx4dzfb0w7vz4lbm1ppq1lpzd1ss7v4r3ydnx2hdrdgv2ki01a"))))
+    (build-system dune-build-system)
+    (propagated-inputs
+      (list ocaml-uri ocaml-hex ocamlformat ocaml-odoc))
+    (inputs (list gmp node))
+    (native-inputs (list ocaml-alcotest
+                         ocaml-crowbar
+                         ocaml-ezjsonm
+                         ocaml-js-of-ocaml
+                         ocaml-ppx-expect
+                         ocaml-ppx-hash
+                         ocaml-zarith
+                         ocaml-zarith-stubs-js))
+    (home-page "https://gitlab.com/nomadic-labs/json-data-encoding")
+    (synopsis "Type-safe encoding to and decoding from JSON")
+    (description
+      "This package provides type-safe JSON encoding and decoding.  The
+type of JSON documents handled by this library is directly compatible
+with ezjsonm, but converters are provided for yojson users, and an
+advanced functorial interface allows you to use any JSON
+representation.")
+    (license license:expat)))
+
 (define-public ocaml-jsonm
   (package
     (name "ocaml-jsonm")
-- 
2.45.2





This bug report was last modified 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.