[PATCH] Add ghc-cryptohash-sha512

  • Open
  • quality assurance status badge
Details
2 participants
  • N0lim
  • Ludovic Courtès
Owner
unassigned
Submitted by
N0lim
Severity
normal
N
N
N0lim wrote on 2 Jan 2022 09:28
(address . guix-patches@gnu.org)
CALx=Yz3sBxn3q2B32W2s8uYrJM6+RyEeZeQ8AviHHp_2jX-YdQ@mail.gmail.com
I want to add a Haskell development package

(define-module (n0lim ghc-cryptohash-sha512)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages haskell-crypto)
#:use-module (gnu packages haskell-check)
#:use-module (guix build-system haskell)
#:use-module ((guix licenses) #:prefix license:))
(define-public ghc-cryptohash-sha512
(package
(name "ghc-cryptohash-sha512")
(version "0.11.101.0")
(source
(origin
(method url-fetch)
(uri (hackage-uri "cryptohash-sha512" version))
(sha256
(base32 "0a6sc5b6w0k47fyjhyrfm3p25jsbsqjknfq5mbj53p2p1qsfykc1"))))
(build-system haskell-build-system)
(native-inputs
(list ghc-base16-bytestring
ghc-sha
ghc-tasty
ghc-tasty-quickcheck
ghc-tasty-hunit))
(synopsis "Fast, pure and practical SHA-512 implementation")
(description
"This package provides a practical incremental and one-pass,
pure API to the SHA-512 hash algorithm (including HMAC support) with
performance close to the fastest implementations available in other
languages. The implementation is made in C with a haskell FFI wrapper
that hides the C implementation. NOTE: This package has been forked
off cryptohash-0.11.7 because the cryptohash package has been
deprecated and so this package continues to satisfy the need for a
lightweight package providing the SHA512 hash algorithm without any
dependencies on packages other than base and bytestring. Consequently,
this package can be used as a drop-in replacement for cryptohash's
\"Crypto.Hash.SHA512\" module, though with a clearly smaller
footprint.")
(license license:bsd-3)))
Attachment: file
(define-module (n0lim ghc-cryptohash-sha512) #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-crypto) #:use-module (gnu packages haskell-check) #:use-module (guix build-system haskell) #:use-module ((guix licenses) #:prefix license:)) (define-public ghc-cryptohash-sha512 (package (name "ghc-cryptohash-sha512") (version "0.11.101.0") (source (origin (method url-fetch) (uri (hackage-uri "cryptohash-sha512" version)) (sha256 (base32 "0a6sc5b6w0k47fyjhyrfm3p25jsbsqjknfq5mbj53p2p1qsfykc1")))) (build-system haskell-build-system) (native-inputs (list ghc-base16-bytestring ghc-sha ghc-tasty ghc-tasty-quickcheck ghc-tasty-hunit)) (home-page "https://github.com/haskell-hvr/cryptohash-sha512") (synopsis "Fast, pure and practical SHA-512 implementation") (description "This package provides a practical incremental and one-pass, pure API to the SHA-512 hash algorithm (including HMAC support) with performance close to the fastest implementations available in other languages. The implementation is made in C with a haskell FFI wrapper that hides the C implementation. NOTE: This package has been forked off cryptohash-0.11.7 because the cryptohash package has been deprecated and so this package continues to satisfy the need for a lightweight package providing the SHA512 hash algorithm without any dependencies on packages other than base and bytestring. Consequently, this package can be used as a drop-in replacement for cryptohash's \"Crypto.Hash.SHA512\" module, though with a clearly smaller footprint.") (license license:bsd-3)))
L
L
Ludovic Courtès wrote on 5 Jan 2022 20:08
(address . control@debbugs.gnu.org)
878rvuknl9.fsf@gnu.org
retitle 52959 [PATCH] Add ghc-cryptohash-sha512
quit
L
L
Ludovic Courtès wrote on 5 Jan 2022 20:10
Re: bug#52959: Adding ghc-cryptohash-sha512
(name . N0lim)(address . 0s7n888884@gmail.com)(address . 52959@debbugs.gnu.org)
871r1mknh4.fsf@gnu.org
Hi N0lim,

N0lim <0s7n888884@gmail.com> skribis:

Toggle quote (2 lines)
> I want to add a Haskell development package

Nice.

Could you turn it into a patch for Guix proper? Please take a look at
and do ask here or on #guix on IRC if anything’s unclear.

In particular:

Toggle quote (2 lines)
> (define-module (n0lim ghc-cryptohash-sha512)

… packages in Guix are in the (gnu packages …) name space. You’ll find
that one of the gnu/packages/haskell*.scm files is probably suitable for
this package.

Thanks in advance!

Ludo’.
L
L
Ludovic Courtès wrote on 5 Jan 2022 20:10
control message for bug #52959
(address . control@debbugs.gnu.org)
87zgoaj8wj.fsf@gnu.org
tags 52959 + moreinfo
quit
?