From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42097) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inL7d-0004nK-GK for guix-patches@gnu.org; Fri, 03 Jan 2020 06:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inL7b-0004vw-Sj for guix-patches@gnu.org; Fri, 03 Jan 2020 06:28:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inL7a-0004qu-Jj for guix-patches@gnu.org; Fri, 03 Jan 2020 06:28:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inL7a-0005fy-Fn for guix-patches@gnu.org; Fri, 03 Jan 2020 06:28:02 -0500 Subject: [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:40106) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inL7F-0004Sd-K9 for guix-patches@gnu.org; Fri, 03 Jan 2020 06:27:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inL7E-00038z-5M for guix-patches@gnu.org; Fri, 03 Jan 2020 06:27:41 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:53401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inL7D-00033k-T5 for guix-patches@gnu.org; Fri, 03 Jan 2020 06:27:40 -0500 Received: by mail-wm1-x341.google.com with SMTP id m24so8102341wmc.3 for ; Fri, 03 Jan 2020 03:27:39 -0800 (PST) From: Alexandru-Sergiu Marton Date: Fri, 3 Jan 2020 13:28:00 +0200 Message-Id: <20200103112800.18791-1-brown121407@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: 38891@debbugs.gnu.org Cc: Alexandru-Sergiu Marton * gnu/packages/haskell-web.scm (ghc-http-reverse-proxy): New variable. --- gnu/packages/haskell-web.scm | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index 5888e8542e..f0dd72cdcf 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2017 Tobias Geerinckx-Rice ;;; Copyright © 2019 Robert Vollmert ;;; Copyright © 2019 John Soo +;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -377,6 +378,48 @@ contents of the HTTP connection. It also provides higher-level functions which allow you to avoid direct usage of conduits.") (license license:bsd-3))) +(define-public ghc-http-reverse-proxy + (package + (name "ghc-http-reverse-proxy") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/http-reverse-proxy/" + "http-reverse-proxy-" version ".tar.gz")) + (sha256 + (base32 + "1a6i5njf85b2lhg8m83njagcf09wih5q2irnyb2890s724qr277v")))) + (build-system haskell-build-system) + (inputs + `(("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-http-types" ,ghc-http-types) + ("ghc-word8" ,ghc-word8) + ("ghc-blaze-builder" ,ghc-blaze-builder) + ("ghc-http-client" ,ghc-http-client) + ("ghc-wai" ,ghc-wai) + ("ghc-network" ,ghc-network) + ("ghc-conduit" ,ghc-conduit) + ("ghc-conduit-extra" ,ghc-conduit-extra) + ("ghc-wai-logger" ,ghc-wai-logger) + ("ghc-resourcet" ,ghc-resourcet) + ("ghc-unliftio" ,ghc-unliftio) + ("ghc-streaming-commons" ,ghc-streaming-commons))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-warp" ,ghc-warp) + ("ghc-http-conduit" ,ghc-http-conduit))) + (home-page + "https://github.com/fpco/http-reverse-proxy") + (synopsis + "Reverse proxy HTTP requests, either over raw sockets or with WAI") + (description + "Provides a simple means of reverse-proxying HTTP requests. The raw +approach uses the same technique as leveraged by keter, whereas the WAI +approach performs full request/response parsing via WAI and http-conduit.") + (license license:bsd-3))) + (define-public ghc-wai (package (name "ghc-wai") -- 2.24.1