From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:52448) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaei0-0008D3-Ev for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaehs-000210-Th for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53660) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaehs-0001za-Ob for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaehr-0006TS-M6 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:03 -0500 Subject: [bug#38423] [PATCH 26/49] gnu: Add ghc-http-media. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:28 +0100 Message-Id: <20191129113751.82405-26-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-http-media): New variable. --- gnu/packages/haskell-web.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index 87165be078..da52f1f24f 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -1724,3 +1724,43 @@ them if they exist.") (synopsis "WAI application for static serving") (description "WAI application for static serving.") (license license:expat))) + +(define-public ghc-http-media + (package + (name "ghc-http-media") + (version "0.7.1.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/http-media/http-media-" + version + ".tar.gz")) + (sha256 + (base32 + "0kqjzvh5y8r6x5rw2kgd816w2963c6cbyw2qjvaj2mv59zxzqkrr")))) + (build-system haskell-build-system) + (inputs + `(("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-utf8-string" ,ghc-utf8-string))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-test-framework" ,ghc-test-framework) + ("ghc-test-framework-quickcheck2" + ,ghc-test-framework-quickcheck2))) + (arguments + `(#:cabal-revision + ("1" + "19py5pspx80gg679p9dzqr3iidflppxc1x4vkldamjkidyi406j8"))) + (home-page "https://github.com/zmthy/http-media") + (synopsis + "Processing HTTP Content-Type and Accept headers") + (description + "This library is intended to be a comprehensive solution to parsing +and selecting quality-indexed values in HTTP headers. It is capable of +parsing both media types and language parameters from the Accept and Content +header families, and can be extended to match against other accept headers +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))) -- 2.21.0 (Apple Git-122.2)