From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaedI-0004wy-4r for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaedC-0003nY-P4 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:20 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaedA-0003ko-UT for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:14 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaedA-0006Jo-SR for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:12 -0500 Subject: [bug#38423] [PATCH 47/49] gnu: Add ghc-jose. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:49 +0100 Message-Id: <20191129113751.82405-47-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> 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: 38423@debbugs.gnu.org Cc: Robert Vollmert * gnu/packages/haskell-web.scm (ghc-jose): New variable. --- gnu/packages/haskell-web.scm | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index aca00c5aee..b38ca37e25 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -1821,3 +1821,57 @@ the client.") API specifications as well as manipulating them. The original Swagger 2.0 specification is available at http://swagger.io/specification/.") (license license:bsd-3))) + +(define-public ghc-jose + (package + (name "ghc-jose") + (version "0.8.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/jose/jose-" + version + ".tar.gz")) + (sha256 + (base32 + "02xg8axy6whbkn0mzg1gjy6b1mhxlmsh1x7vjk1fiawvg9nwzrkl")))) + (build-system haskell-build-system) + (inputs + `(("ghc-attoparsec" ,ghc-attoparsec) + ("ghc-base64-bytestring" ,ghc-base64-bytestring) + ("ghc-concise" ,ghc-concise) + ("ghc-cryptonite" ,ghc-cryptonite) + ("ghc-lens" ,ghc-lens) + ("ghc-memory" ,ghc-memory) + ("ghc-monad-time" ,ghc-monad-time) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-safe" ,ghc-safe) + ("ghc-aeson" ,ghc-aeson) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-network-uri" ,ghc-network-uri) + ("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-quickcheck-instances" + ,ghc-quickcheck-instances) + ("ghc-x509" ,ghc-x509) + ("ghc-vector" ,ghc-vector))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hspec" ,ghc-tasty-hspec) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) + (home-page + "https://github.com/frasertweedale/hs-jose") + (synopsis + "Javascript Object Signing and Encryption and JSON Web Token library") + (description + "An implementation of the Javascript Object Signing and Encryption (JOSE) +and JSON Web Token (JWT; RFC 7519) formats. +The JSON Web Signature (JWS; RFC 7515) implementation is complete. +EdDSA signatures (RFC 8037) are supported (Ed25519 only). +JWK Thumbprint (RFC 7638) is supported (requires /aeson/ >= 0.10). +JSON Web Encryption (JWE; RFC 7516) is not yet implemented. +The __ECDSA implementation is vulnerable to timing attacks__ +and should only be used for verification.") + (license license:asl2.0))) -- 2.21.0 (Apple Git-122.2)