From f971215408284fb25c9ef884fdf5f859c88cb028 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 11:12:44 -0800 Subject: [PATCH 32/34] gnu: Add ghc-cryptonite-conduit. * gnu/packages/haskell-xyz.scm (ghc-cryptonite-conduit): New variable. --- gnu/packages/haskell-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index ad87c7dd43..bada021a36 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -2652,6 +2652,47 @@ option to turn off macro-expansion.") "Generic cryptography public keys algorithm types") (license license:bsd-3))) +(define-public ghc-cryptonite-conduit + (package + (name "ghc-cryptonite-conduit") + (version "0.2.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/cryptonite-conduit/" + "cryptonite-conduit-" version ".tar.gz")) + (sha256 + (base32 + "1bldcmda4xh52mw1wfrjljv8crhw3al7v7kv1j0vidvr7ymnjpbh")))) + (build-system haskell-build-system) + (inputs + `(("ghc-conduit" ,ghc-conduit) + ("ghc-conduit-extra" ,ghc-conduit-extra) + ("ghc-cryptonite" ,ghc-cryptonite) + ("ghc-exceptions" ,ghc-exceptions) + ("ghc-memory" ,ghc-memory) + ("ghc-resourcet" ,ghc-resourcet))) + (native-inputs + `(("ghc-conduit-combinators" ,ghc-conduit-combinators) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hunit" ,ghc-tasty-hunit) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) + (arguments + `(#:cabal-revision + ("1" + "1hh2nzfz4qpxgivfilgk4ll416lph8b2fdkzpzrmqfjglivydfmz"))) + (home-page + "https://github.com/haskell-crypto/cryptonite-conduit") + (synopsis "Cryptonite conduit") + (description + "Conduit bridge for cryptonite. + +For now only provide a conduit version for hash and hmac, but with +contribution, this could provide cipher conduits too, and probably other +things.") + (license license:bsd-3))) + (define-public ghc-data-accessor (package (name "ghc-data-accessor") -- 2.25.0