From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42463) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7j2-00074U-K7 for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7j1-0006WJ-7O for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7j1-0006WA-4Z for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ip7j1-0002Yk-2N for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:03 -0500 Subject: [bug#39030] [PATCH] gnu: Add ghc-nonce. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:42267) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7it-0006sz-Tw for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7is-0006LO-QN for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:55 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7is-0006Jk-Hd for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:54 -0500 Received: by mail-wr1-x435.google.com with SMTP id c9so2560788wrw.8 for ; Wed, 08 Jan 2020 01:33:54 -0800 (PST) From: Alexandru-Sergiu Marton Date: Wed, 8 Jan 2020 11:34:21 +0200 Message-Id: <20200108093421.16584-1-brown121407@member.fsf.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39030@debbugs.gnu.org Cc: Alexandru-Sergiu Marton * gnu/packages/haskell-xyz.scm (ghc-nonce): New variable. --- gnu/packages/haskell-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index b2279f6cdd..3f73c31072 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -7869,6 +7869,37 @@ class, and a lazy number type for non-negative numbers (a generalization of Peano numbers).") (license license:gpl3+))) +(define-public ghc-nonce + (package + (name "ghc-nonce") + (version "1.0.7") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/nonce/" + "nonce-" version ".tar.gz")) + (sha256 + (base32 + "1q9ph0aq51mvdvydnriqd12sfin36pfb8f588zgac1ybn8r64ksb")))) + (build-system haskell-build-system) + (inputs + `(("ghc-base64-bytestring" ,ghc-base64-bytestring) + ("ghc-entropy" ,ghc-entropy) + ("ghc-unliftio" ,ghc-unliftio) + ("ghc-unliftio-core" ,ghc-unliftio-core))) + (home-page + "https://github.com/prowdsponsor/nonce") + (synopsis "Generate cryptographic nonces in Haskell") + (description + "A nonce is an arbitrary number used only once in a cryptographic +communication. This package contain helper functions for generating nonces. +There are many kinds of nonces used in different situations. It's not +guaranteed that by using the nonces from this package you won't have any +security issues. Please make sure that the nonces generated via this +package are usable on your design.") + (license license:bsd-3))) + (define-public ghc-numeric-extras (package (name "ghc-numeric-extras") -- 2.24.1