gnu: Add ocaml-ezjsonm.

* gnu/packages/ocaml.scm (ocaml4.07-ezjsonm): Rename to...
(ocaml-ezjsonm): ...this.  Use latest ocaml version.
This commit is contained in:
Julien Lepiller 2022-06-18 13:09:08 +02:00
parent 7b615e3e6c
commit 0bf2cf1351
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

View File

@ -3697,9 +3697,9 @@ writing to these structures, and they are accessed via the Bigarray module.")
(description "Hex is a minimal library providing hexadecimal converters.") (description "Hex is a minimal library providing hexadecimal converters.")
(license license:isc))) (license license:isc)))
(define-public ocaml4.07-ezjsonm (define-public ocaml-ezjsonm
(package (package
(name "ocaml4.07-ezjsonm") (name "ocaml-ezjsonm")
(version "1.1.0") (version "1.1.0")
(source (source
(origin (origin
@ -3713,16 +3713,9 @@ writing to these structures, and they are accessed via the Bigarray module.")
(build-system dune-build-system) (build-system dune-build-system)
(arguments (arguments
`(#:package "ezjsonm" `(#:package "ezjsonm"
#:test-target "." #:test-target "."))
#:ocaml ,ocaml-4.07 (native-inputs (list ocaml-alcotest))
#:findlib ,ocaml4.07-findlib (propagated-inputs (list ocaml-hex ocaml-jsonm ocaml-sexplib))
#:dune ,ocaml4.07-dune))
(native-inputs
`(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
(propagated-inputs
`(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib))))
(home-page "https://github.com/mirage/ezjsonm/") (home-page "https://github.com/mirage/ezjsonm/")
(synopsis "Read and write JSON data") (synopsis "Read and write JSON data")
(description "Ezjsonm provides more convenient (but far less flexible) input (description "Ezjsonm provides more convenient (but far less flexible) input
@ -4020,7 +4013,7 @@ XML and Protocol Buffers formats.")
("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring)) ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner)) ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
("ocaml-core-kernel" ,ocaml4.07-core-kernel) ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
("ocaml-ezjsonm" ,ocaml4.07-ezjsonm) ("ocaml-ezjsonm" ,(package-with-ocaml4.07 ocaml-ezjsonm))
("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils)) ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc)) ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph)) ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))