[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49867] [PATCH 18/29] gnu: Add ocaml-ppx-deriving-yojson.
From: |
pukkamustard |
Subject: |
[bug#49867] [PATCH 18/29] gnu: Add ocaml-ppx-deriving-yojson. |
Date: |
Wed, 4 Aug 2021 07:15:34 +0000 |
* gnu/packages/ocaml.scm (ocaml-ppx-deriving-yojson): New variable.
---
gnu/packages/ocaml.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f385aa2a94..2cc91ea2c0 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4560,6 +4560,35 @@ generating code based on type definitions, and a set of
useful plugins for
common tasks.")
(license license:expat)))
+(define-public ocaml-ppx-deriving-yojson
+ (package
+ (name "ocaml-ppx-deriving-yojson")
+ (version "3.6.1")
+ (home-page "https://github.com/ocaml-ppx/ppx_deriving_yojson")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1icz5h6p3pfj7my5gi7wxpflrb8c902dqa17f9w424njilnpyrbk"))))
+ (build-system dune-build-system)
+ (arguments `(#:test-target "."))
+ (propagated-inputs
+ `(("ocaml-yojson" ,ocaml-yojson)
+ ("ocaml-result" ,ocaml-result)
+ ("ocaml-ppx-deriving" ,ocaml-ppx-deriving)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (native-inputs `(("ocaml-ounit" ,ocaml-ounit)))
+ (properties `((upstream-name . "ppx_deriving_yojson")))
+ (synopsis "JSON codec generator for OCaml")
+ (description "@code{ocaml-ppx-deriving-yojson} is an OCaml ppx_deriving
+plugin that provides a JSON codec generator.")
+ (license license:expat)))
+
(define-public ocaml-craml
(package
(name "ocaml-craml")
--
2.32.0
- [bug#49867] [PATCH 13/29] gnu: Add ocaml-mirage-crypto-rng., (continued)
- [bug#49867] [PATCH 17/29] gnu: Add ocaml-ppx-deriving., pukkamustard, 2021/08/04
- [bug#49867] [PATCH 16/29] gnu: Add ocaml-asn1-combinators., pukkamustard, 2021/08/04
- [bug#49867] [PATCH 19/29] gnu: Add ocaml-mirage-crypto-ec., pukkamustard, 2021/08/04
- [bug#49867] [PATCH 18/29] gnu: Add ocaml-ppx-deriving-yojson.,
pukkamustard <=
- [bug#49867] [PATCH 12/29] gnu: Add ocaml-randomconv., pukkamustard, 2021/08/04
- [bug#49867] [PATCH 15/29] gnu: Add ocaml-ptime., pukkamustard, 2021/08/04
[bug#49867] [PATCH 25/29] gnu: Add ocaml-lwt-log., pukkamustard, 2021/08/04
[bug#49867] [PATCH 28/29] gnu: Add ocaml-magic-mime., pukkamustard, 2021/08/04