[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49867] [PATCH v2 20/31] gnu: Add ocaml-ppx-deriving.
From: |
pukkamustard |
Subject: |
[bug#49867] [PATCH v2 20/31] gnu: Add ocaml-ppx-deriving. |
Date: |
Mon, 9 Aug 2021 07:01:13 +0000 |
* gnu/packages/ocaml.scm (ocaml-ppx-deriving): New variable.
---
gnu/packages/ocaml.scm | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index de3ae3eb9d..92562d1c3a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4523,7 +4523,38 @@ speedup, polymorphic variants and optional syntax for
tuples and variants.
yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
serializers and deserializers from type definitions.")
(license license:bsd-3)))
-
+
+(define-public ocaml-ppx-deriving
+ (package
+ (name "ocaml-ppx-deriving")
+ (version "5.2.1")
+ (home-page "https://github.com/ocaml-ppx/ppx_deriving")
+ (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
+ "1wqcnw4wi6pfjjhixpakckm03dpj990259za432804471a6spm2j"))))
+ (build-system dune-build-system)
+ (arguments `(#:test-target "."))
+ (propagated-inputs
+ `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)
+ ("ocaml-result" ,ocaml-result)))
+ (native-inputs
+ `(("ocaml-cppo" ,ocaml-cppo)
+ ("ocaml-ounit2" ,ocaml-ounit2)))
+ (properties `((upstream-name . "ppx_deriving")))
+ (synopsis "Type-driven code generation for OCaml")
+ (description "This OCaml library provides common infrastructure for
+generating code based on type definitions, and a set of useful plugins for
+common tasks.")
+ (license license:expat)))
+
(define-public ocaml-craml
(package
(name "ocaml-craml")
--
2.32.0
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., (continued)
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., pukkamustard, 2021/08/10
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., Xinglu Chen, 2021/08/10
- [bug#49867] [PATCH v2 16/31] gnu: Add ocaml-mirage-crypto-rng., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 22/31] gnu: Add ocaml-mirage-crypto-ec., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 19/31] gnu: Add ocaml-asn1-combinators., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 25/31] gnu: Add ocaml-cstruct-unix., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 20/31] gnu: Add ocaml-ppx-deriving.,
pukkamustard <=
- [bug#49867] [PATCH v2 21/31] gnu: Add ocaml-ppx-deriving-yojson., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 27/31] gnu: Add ocaml-ca-certs., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 28/31] gnu: Add ocaml-lwt-ssl., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 29/31] gnu: Add ocaml-conduit-lwt-unix., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 26/31] gnu: Add ocaml-x509., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 30/31] gnu: Add ocaml-magic-mime., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 31/31] gnu: Add ocaml-cohttp-lwt-unix, pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 24/31] gnu: Add ocaml-pbkdf., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 23/31] gnu: Add ocaml-gmap., pukkamustard, 2021/08/09
- [bug#49867] [PATCH 00/29] gnu: Add ocaml-cohttp-lwt-unix., Xinglu Chen, 2021/08/09