mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: Add ghc-http-reverse-proxy.
* gnu/packages/haskell-web.scm (ghc-http-reverse-proxy): New variable.
This commit is contained in:
parent
d38903fab4
commit
7e5580bd81
1 changed files with 43 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@gmail.com>
|
;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@gmail.com>
|
||||||
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
||||||
;;; Copyright © 2020 Kyle Meyer <kyle@kyleam.com>
|
;;; Copyright © 2020 Kyle Meyer <kyle@kyleam.com>
|
||||||
|
;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -417,6 +418,48 @@ (define-public ghc-http-conduit
|
||||||
which allow you to avoid direct usage of conduits.")
|
which allow you to avoid direct usage of conduits.")
|
||||||
(license license:bsd-3)))
|
(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
|
(define-public ghc-wai
|
||||||
(package
|
(package
|
||||||
(name "ghc-wai")
|
(name "ghc-wai")
|
||||||
|
|
Loading…
Reference in a new issue