Subject: [bug#50835] [PATCH v2 17/24] gnu: Add ghc-multihash-cryptonite.

From: Stephen Paul Weber <[email-masked]>
Date: Thu, 13 Jan 2022 21:45:39 -0500

* gnu/packages/haskell-xyz.scm (ghc-multihash-cryptonite): New variable.
---
 gnu/packages/haskell-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 1534b454ef..26ac5cdb5d 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16466,3 +16466,23 @@ IPv6 address should be surrounded by square brackets.")
     (synopsis "VarInt encoding/decoding via Data.Binary")
     (description "Binary VarInt implements VarInt encoding and decoding.")
     (license license:bsd-3)))
+
+(define-public ghc-multihash-cryptonite
+  (package
+    (name "ghc-multihash-cryptonite")
+    (version "0.1.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "multihash-cryptonite" version))
+        (sha256
+          (base32 "0gl13kjqz14lnwz7x162fad3j99qs1xa3zabpr30q53pkzk8adsi"))))
+    (build-system haskell-build-system)
+    (inputs (list ghc-binary-varint ghc-cryptonite ghc-hashable ghc-memory))
+    (native-inputs (list ghc-hedgehog ghc-doctest ghc-cabal-doctest))
+    (home-page "https://github.com/monadic-xyz/ipfs")
+    (synopsis "Multihash implementation for Haskell")
+    (description
+      "Multihash Cryptonite implements self-identifying hashes as an
+implementation of https://github.com/multiformats/multihash")
+    (license license:bsd-3)))
-- 
2.30.2