Subject: [bug#73466] [PATCH 12/16] gnu: Add ocaml-ppx-deriving-hash.

From: Herman Rimm <[email-masked]>
Date: Wed, 25 Sep 2024 10:03:08 +0200

* gnu/packages/ocaml.scm (ocaml-ppx-deriving-hash): Add variable.

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 1989a48798..c6470d5284 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6933,6 +6933,27 @@ (define-public ocaml-ppx-deriving
 on type definitions, and a set of useful plugins for common tasks.")
     (license license:expat)))
 
+(define-public ocaml-ppx-deriving-hash
+  (package
+    (name "ocaml-ppx-deriving-hash")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/sim642/ppx_deriving_hash"
+                           "/releases/download/" version
+                           "/ppx_deriving_hash-" version ".tbz"))
+       (sha256
+        (base32 "1bqmg0w3qjmhk056rfjn9jxw5gj8286vs86wqawkkx7yn00cxkdj"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-ppxlib ocaml-ppx-deriving ocaml-odoc))
+    (properties `((upstream-name . "ppx_deriving_hash")))
+    (home-page "https://github.com/sim642/ppx_deriving_hash")
+    (synopsis "Deriver for standard hash functions")
+    (description
+     "Deriver for standard hash functions without extra dependencies.")
+    (license license:expat)))
+
 (define-public ocaml-ppx-derivers
   (package
     (name "ocaml-ppx-derivers")
-- 
2.45.2