* gnu/packages/ocaml.scm (ocaml-ezjsonm): New variable. --- gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 9b9b3aa32..b4b506f8e 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2705,3 +2705,31 @@ writing to these structures, and they are accessed via the Bigarray module.") (synopsis "Minimal library providing hexadecimal converters") (description "Minimal library providing hexadecimal converters.") (license license:isc))) + +(define-public ocaml-ezjsonm + (package + (name "ocaml-ezjsonm") + (version "0.4.3") + (home-page "https://github.com/mirage/ezjsonm/") + (source (origin + (method url-fetch) + (uri (string-append home-page "archive/" version ".tar.gz")) + (sha256 + (base32 + "1kag0z2xlk4rw73a240dmkxh9rj6psxxcxkm7d7z0rrj6hzjajgq")))) + (build-system ocaml-build-system) + (native-inputs `(("alcotest" ,ocaml-alcotest))) + (propagated-inputs `(("hex" ,ocaml-hex) + ("jsonm" ,ocaml-jsonm) + ("lwt" ,ocaml-lwt) + ("sexplib" ,ocaml-sexplib))) + (arguments `(#:configure-flags (list "--enable-lwt") + ;; dllcstruct_stubs.so: cannot open shared object file: No + ;; such file or directory + #:tests? #f)) + (synopsis "An easy interface on top of the Jsonm library") + (description "This version provides more convenient (but far less flexible) +input and output functions that go to and from [string] values. This avoids +the need to write signal code, which is useful for quick scripts that +manipulate JSON.") + (license license:isc))) -- 2.11.0