From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kGJDKYgouF9XBAAA0tVLHw (envelope-from ) for ; Fri, 20 Nov 2020 20:35:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4I0hJYgouF+6CwAAB5/wlQ (envelope-from ) for ; Fri, 20 Nov 2020 20:35:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E443594011C for ; Fri, 20 Nov 2020 20:35:19 +0000 (UTC) Received: from localhost ([::1]:57892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgD7l-0005kF-Lm for larch@yhetil.org; Fri, 20 Nov 2020 15:35:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgD7W-0005jT-CO for guix-patches@gnu.org; Fri, 20 Nov 2020 15:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgD7W-0008J3-4h for guix-patches@gnu.org; Fri, 20 Nov 2020 15:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgD7W-0005lG-1c for guix-patches@gnu.org; Fri, 20 Nov 2020 15:35:02 -0500 Subject: bug#38891: [PATCH v2] gnu: Add ghc-http-reverse-proxy. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 20 Nov 2020 20:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 38891 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Alexandru-Sergiu Marton Cc: 38891-done@debbugs.gnu.org Mail-Followup-To: 38891@debbugs.gnu.org, mail@cbaines.net, brown121407@gmail.com Received: via spool by 38891-done@debbugs.gnu.org id=D38891.160590446722098 (code D ref 38891); Fri, 20 Nov 2020 20:35:01 +0000 Received: (at 38891-done) by debbugs.gnu.org; 20 Nov 2020 20:34:27 +0000 Received: from localhost ([127.0.0.1]:44379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgD6m-0005kB-Dg for submit@debbugs.gnu.org; Fri, 20 Nov 2020 15:34:27 -0500 Received: from mira.cbaines.net ([212.71.252.8]:37806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgD6l-0005k3-3i for 38891-done@debbugs.gnu.org; Fri, 20 Nov 2020 15:34:15 -0500 Received: from localhost (188.30.135.14.threembb.co.uk [188.30.135.14]) by mira.cbaines.net (Postfix) with ESMTPSA id 242AA27BBF5; Fri, 20 Nov 2020 20:34:14 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 5c60ab6e; Fri, 20 Nov 2020 20:34:11 +0000 (UTC) References: <20200103112800.18791-1-brown121407@member.fsf.org> <20200104085206.5425-1-brown121407@member.fsf.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20200104085206.5425-1-brown121407@member.fsf.org> Date: Fri, 20 Nov 2020 20:34:09 +0000 Message-ID: <87mtzbkbsu.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: /CVxjSPbARmS --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alexandru-Sergiu Marton writes: > * gnu/packages/haskell-web.scm (ghc-http-reverse-proxy): New variable. > --- > Fix linter errors. > > 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..bf96ca88ca 100644 > --- a/gnu/packages/haskell-web.scm > +++ b/gnu/packages/haskell-web.scm > @@ -7,6 +7,7 @@ > ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2019 Robert Vollmert > ;;; Copyright =C2=A9 2019 John Soo > +;;; Copyright =C2=A9 2020 Alexandru-Sergiu Marton > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -377,6 +378,48 @@ contents of the HTTP connection. It also provides h= igher-level functions > which allow you to avoid direct usage of conduits.") > (license license:bsd-3))) >=20=20 > +(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") Looks good to me, sorry for the long delay! I've gone ahead and pushed to master as 7e5580bd81ca6586268fe49fcf4aec0153d160d4. Thanks, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+4KEFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xe/eRAAsDt97oWOHzKI+qtUul89x9EsWHlP/iFQ vjhyeDScBERrrHC4UCrB4zNro8FeLqg69dpj8D5UuL9wDQZ+Z6tmrXwvxSIbZDqw cBw0JkAsLDNFIB6H4EZbGn32+oNuX21xax6DAPCBj3HbePt+2crLxbZGARdlMCkU n0QpPDWYv8XslTWL4eCf4t5TilBX8XpyJyNQi1PRW5OqmmioZAtwFWD6pelEhJsX FMmSoUA3KKKXqwTOpVOPqRD+KsvBWdG1pF8SFMspzG51UNGKSQTVbDt884LRjk7y ruFwdjbRPQy2f2BWasLTsFwWLZosZo11/Fv+Fo6IyKxzggpWjjfjxvuVjJMG4ADy zcEu+l+ute000WJx4sxAZ7/KG9mv5qT8E4xUm93i8WSxtk4/z2xJnAqWbfBNsQMR 88RSeRVHMHwizIEWyPxx9PFyBU83K1HX/lp31w5yzk5iACwy5cw0i8KE8KwUDA7z X1RtrUNYTn3mTnYVWo0hSXUhJH+TJKBgt9Kab6DiLxcBrhSW1Nri3ALPlq+bPifl bPD2is/MmdUENbOujNH0+SGZLMsE50nrIaLMX9om8gujNkMTojufyZ15a5KVyx07 hcFe8YpLXeejqkINdPu+M0CprEe1kO46eolHFcUk4+qWqphuoX7X6RTQKHZA8yA/ 04aXFaDHwGI= =G8rX -----END PGP SIGNATURE----- --=-=-=--