From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44050) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaedC-0004q2-Nx for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaedA-0003jZ-FH for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:14 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53617) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaed8-0003eD-8X for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaed7-0006Ii-46 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:09 -0500 Subject: [bug#38423] [PATCH 43/49] gnu: Add ghc-swagger2. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:45 +0100 Message-Id: <20191129113751.82405-43-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-swagger2): New variable. --- gnu/packages/haskell-web.scm | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index da52f1f24f..aca00c5aee 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -1764,3 +1764,60 @@ as well. Selecting the appropriate header value is achieved by comparing a list of server options against the quality-indexed values supplied by the client.") (license license:expat))) + +(define-public ghc-swagger2 + (package + (name "ghc-swagger2") + (version "2.3.1.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/swagger2/swagger2-" + version + ".tar.gz")) + (sha256 + (base32 + "19fslhjqcnk0da1c8sdflnnxjzbbzqb0nbknpgyd45q0psxr6xs7")))) + (build-system haskell-build-system) + (inputs + `(("ghc-base-compat-batteries" + ,ghc-base-compat-batteries) + ("ghc-aeson" ,ghc-aeson) + ("ghc-cookie" ,ghc-cookie) + ("ghc-generics-sop" ,ghc-generics-sop) + ("ghc-hashable" ,ghc-hashable) + ("ghc-http-media" ,ghc-http-media) + ("ghc-insert-ordered-containers" + ,ghc-insert-ordered-containers) + ("ghc-lens" ,ghc-lens) + ("ghc-network" ,ghc-network) + ("ghc-scientific" ,ghc-scientific) + ("ghc-transformers-compat" + ,ghc-transformers-compat) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-uuid-types" ,ghc-uuid-types) + ("ghc-vector" ,ghc-vector))) + (native-inputs + `(("cabal-doctest" ,cabal-doctest) + ("hspec-discover" ,hspec-discover) + ("ghc-glob" ,ghc-glob) + ("ghc-hunit" ,ghc-hunit) + ("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-aeson-qq" ,ghc-aeson-qq) + ("ghc-doctest" ,ghc-doctest) + ("ghc-hspec" ,ghc-hspec) + ("ghc-quickcheck-instances" ,ghc-quickcheck-instances))) + (arguments + `(#:cabal-revision + ("1" + "1g6jiadrvglrbf0857nzfbnjxmb3lwqamgs47j3qv9k6kfwilzyk"))) + (home-page + "https://github.com/GetShopTV/swagger2") + (synopsis "Swagger 2.0 data model") + (description + "This library is inteded to be used for decoding and encoding Swagger 2.0 +API specifications as well as manipulating them. The original Swagger 2.0 +specification is available at http://swagger.io/specification/.") + (license license:bsd-3))) -- 2.21.0 (Apple Git-122.2)