unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy.
@ 2020-01-03 11:28 Alexandru-Sergiu Marton
  2020-01-04  4:29 ` Brett Gilio
  2020-01-04  8:52 ` [bug#38891] [PATCH v2] " Alexandru-Sergiu Marton
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-01-03 11:28 UTC (permalink / raw)
  To: 38891; +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 <me@tobias.gr>
 ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
+;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
 ;;;
 ;;; 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy.
  2020-01-03 11:28 [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy Alexandru-Sergiu Marton
@ 2020-01-04  4:29 ` Brett Gilio
  2020-01-04  8:52 ` [bug#38891] [PATCH v2] " Alexandru-Sergiu Marton
  1 sibling, 0 replies; 4+ messages in thread
From: Brett Gilio @ 2020-01-04  4:29 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton; +Cc: Alexandru-Sergiu Marton, 38891

Alexandru-Sergiu Marton <brown121407@gmail.com> writes:

> * 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 <me@tobias.gr>
>  ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
>  ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
> +;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
>  ;;;
>  ;;; 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")

Hey again! Similarly with this one, we need to ensure that we are double
spacing after each punctuation in the description. :) Thanks for dealing
with our pickiness!

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#38891] [PATCH v2] gnu: Add ghc-http-reverse-proxy.
  2020-01-03 11:28 [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy Alexandru-Sergiu Marton
  2020-01-04  4:29 ` Brett Gilio
@ 2020-01-04  8:52 ` Alexandru-Sergiu Marton
  2020-11-20 20:34   ` bug#38891: " Christopher Baines
  1 sibling, 1 reply; 4+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-01-04  8:52 UTC (permalink / raw)
  To: 38891; +Cc: Alexandru-Sergiu Marton

* 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 © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
+;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
 ;;;
 ;;; 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38891: [PATCH v2] gnu: Add ghc-http-reverse-proxy.
  2020-01-04  8:52 ` [bug#38891] [PATCH v2] " Alexandru-Sergiu Marton
@ 2020-11-20 20:34   ` Christopher Baines
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Baines @ 2020-11-20 20:34 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton; +Cc: 38891-done

[-- Attachment #1: Type: text/plain, Size: 2941 bytes --]


Alexandru-Sergiu Marton <brown121407@gmail.com> 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 © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
>  ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
>  ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
> +;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
>  ;;;
>  ;;; 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")

Looks good to me, sorry for the long delay!

I've gone ahead and pushed to master as
7e5580bd81ca6586268fe49fcf4aec0153d160d4.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-20 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-03 11:28 [bug#38891] [PATCH] gnu: Add ghc-http-reverse-proxy Alexandru-Sergiu Marton
2020-01-04  4:29 ` Brett Gilio
2020-01-04  8:52 ` [bug#38891] [PATCH v2] " Alexandru-Sergiu Marton
2020-11-20 20:34   ` bug#38891: " Christopher Baines

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git