guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50835] [PATCH v2 19/24] gnu: Add ghc-base32-z-bytestring.


From: Stephen Paul Weber
Subject: [bug#50835] [PATCH v2 19/24] gnu: Add ghc-base32-z-bytestring.
Date: Thu, 13 Jan 2022 21:45:41 -0500

* gnu/packages/haskell-xyz.scm (ghc-base32-z-bytestring): New variable.
---
 gnu/packages/haskell-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 92b3d99b19..93b81f19de 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16504,3 +16504,36 @@ implementation of 
https://github.com/multiformats/multihash";)
       "CPU is a library to get basic lowlevel properties of the cpu platform,
 like endianness and architecture.")
     (license license:bsd-3)))
+
+(define-public ghc-base32-z-bytestring
+  (package
+    (name "ghc-base32-z-bytestring")
+    (version "1.0.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "base32-z-bytestring" version))
+        (sha256
+          (base32 "1r0235a2qqnavsm7jl807m555yd2k2vi2kfacw878v83zdr5qyix"))))
+    (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-internal-reference
+           (lambda _
+             (substitute* "base32-z-bytestring.cabal"
+               (("z-base32-bytestring") "base32-z-bytestring")))))))
+    (inputs (list ghc-cpu))
+    (native-inputs
+      (list ghc-hedgehog
+            ghc-tasty
+            ghc-tasty-fail-fast
+            ghc-tasty-hedgehog
+            ghc-tasty-hspec))
+    (home-page "https://github.com/oscoin/base32-z-bytestring";)
+    (synopsis "Fast z-base32 and z-base32hex codec for ByteStrings")
+    (description
+      "Base32-Z-ByteString is an implementation of the base32 and base32hex
+codecs according to RFC4648, extended to support z-base32 encoding according to
+https://gist.github.com/maaku/8996338#file-bip-ecc32-mediawiki.";)
+    (license license:bsd-3)))
-- 
2.30.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]