From 21d5037eba1bd1ee4578390ea0017bb920252eef Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 11:15:31 -0800 Subject: [PATCH 11/34] gnu: Add ghc-drbg. * gnu/packages/haskell-xyz.scm (ghc-drbg): 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 888c015567..5c46d62fa7 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -3323,6 +3323,47 @@ It is modeled after doctest for Python, see between double precision floating point and text.") (license license:bsd-3))) +(define-public ghc-drbg + (package + (name "ghc-drbg") + (version "0.5.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/DRBG/DRBG-" + version + ".tar.gz")) + (sha256 + (base32 + "1z9vqc1nw0mf2sqgddcipmlkz6mckq9wnrzqqdy3rj3c90135pr1")))) + (build-system haskell-build-system) + (inputs + `(("ghc-cereal" ,ghc-cereal) + ("ghc-prettyclass" ,ghc-prettyclass) + ("ghc-tagged" ,ghc-tagged) + ("ghc-crypto-api" ,ghc-crypto-api) + ("ghc-cryptohash-cryptoapi" ,ghc-cryptohash-cryptoapi) + ("ghc-parallel" ,ghc-parallel) + ("ghc-cipher-aes128" ,ghc-cipher-aes128) + ("ghc-entropy" ,ghc-entropy))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-crypto-api-tests" ,ghc-crypto-api-tests) + ("ghc-hunit" ,ghc-hunit) + ("ghc-test-framework" ,ghc-test-framework) + ("ghc-test-framework-hunit" ,ghc-test-framework-hunit))) + (arguments + ;; FIXME Failing tests + `(#:tests? #f)) + (home-page + "http://hackage.haskell.org/package/DRBG") + (synopsis "Cryptographically secure RNGs") + (description + "Deterministic random bit generator (aka RNG, PRNG) based HMACs, Hashes, +and Ciphers.") + (license license:bsd-3))) + (define-public ghc-dual-tree (package (name "ghc-dual-tree") -- 2.25.0