all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#52959]
@ 2022-01-02  8:28 N0lim
  2022-01-05 19:10 ` [bug#52959] Adding ghc-cryptohash-sha512 Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: N0lim @ 2022-01-02  8:28 UTC (permalink / raw)
  To: 52959


[-- Attachment #1.1: Type: text/plain, Size: 1863 bytes --]

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))
    (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)))

[-- Attachment #1.2: Type: text/html, Size: 2311 bytes --]

[-- Attachment #2: ghc-cryptohash-sha512.scm --]
[-- Type: text/x-scheme, Size: 1819 bytes --]

(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)))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [bug#52959] Adding ghc-cryptohash-sha512
  2022-01-02  8:28 [bug#52959] N0lim
@ 2022-01-05 19:10 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-01-05 19:10 UTC (permalink / raw)
  To: N0lim; +Cc: 52959

Hi N0lim,

N0lim <0s7n888884@gmail.com> skribis:

> I want to add a Haskell development package

Nice.

Could you turn it into a patch for Guix proper?  Please take a look at
<https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html>
and do ask here or on #guix on IRC if anything’s unclear.

In particular:

> (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’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-05 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-02  8:28 [bug#52959] N0lim
2022-01-05 19:10 ` [bug#52959] Adding ghc-cryptohash-sha512 Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.