* [bug#38488] [PATCH] GHC-HAPPSTACK-SERVER
@ 2019-12-04 7:31 Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile Brett Gilio
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Brett Gilio @ 2019-12-04 7:31 UTC (permalink / raw)
To: 38488
This patch series introduces two new variables.
-- ghc-sendfile
-- ghc-happstack-server
ghc-sendfile was added as a necessary input for ghc-happstack-server.
Let me know what you all think!
--
Brett M. Gilio
https://git.sr.ht/~brettgilio/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile.
2019-12-04 7:31 [bug#38488] [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
@ 2019-12-04 7:34 ` Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 2/2] gnu: Add ghc-happstack-server Brett Gilio
2019-12-06 22:03 ` bug#38488: [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
2 siblings, 0 replies; 4+ messages in thread
From: Brett Gilio @ 2019-12-04 7:34 UTC (permalink / raw)
To: 38488
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH 1/2] gnu: Add ghc-sendfile. --]
[-- Type: text/x-patch, Size: 1508 bytes --]
From bef2ec92972c3fbef7558edc9d9ba37d7ca98d68 Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Wed, 4 Dec 2019 01:29:20 -0600
Subject: [PATCH 1/2] gnu: Add ghc-sendfile.
* gnu/packages/haskell-web.scm (ghc-sendfile): New variable.
---
gnu/packages/haskell-web.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 1672170131..6098ad5759 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -1527,3 +1527,24 @@ The first three components of the version number match the upstream flot
version. The package is designed to meet the redistribution
requirements of downstream users (e.g. Debian).")
(license license:expat)))
+(define-public ghc-sendfile
+ (package
+ (name "ghc-sendfile")
+ (version "0.7.11.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/sendfile/sendfile-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0988snmx3bylpw3kcq8hsgji8idc6xcrcfp275qjv3apfdgc9rp0"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-network" ,ghc-network)))
+ (home-page
+ "https://hub.darcs.net/stepcut/sendfile")
+ (synopsis "Portable sendfile library for Haskell")
+ (description
+ "Haskell library which exposes zero-copy sendfile functionality in a portable way.")
+ (license license:bsd-3)))
--
2.24.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#38488] [PATCH 2/2] gnu: Add ghc-happstack-server.
2019-12-04 7:31 [bug#38488] [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile Brett Gilio
@ 2019-12-04 7:34 ` Brett Gilio
2019-12-06 22:03 ` bug#38488: [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
2 siblings, 0 replies; 4+ messages in thread
From: Brett Gilio @ 2019-12-04 7:34 UTC (permalink / raw)
To: 38488
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH 2/2] gnu: Add ghc-happstack-server. --]
[-- Type: text/x-patch, Size: 2656 bytes --]
From cf5229f98030e835dd687b933713dc1a10d7ce92 Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Wed, 4 Dec 2019 01:29:38 -0600
Subject: [PATCH 2/2] gnu: Add ghc-happstack-server.
* gnu/packages/haskell-web.scm (ghc-happstack-server): New variable.
---
gnu/packages/haskell-web.scm | 47 ++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 6098ad5759..5888e8542e 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -1527,6 +1527,53 @@ The first three components of the version number match the upstream flot
version. The package is designed to meet the redistribution
requirements of downstream users (e.g. Debian).")
(license license:expat)))
+
+(define-public ghc-happstack-server
+ (package
+ (name "ghc-happstack-server")
+ (version "7.5.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/happstack-server/happstack-server-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0i7csvmwv7n68gkwqzi985p2mjdgzipjnlj873sdiknhx9pfmq70"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-network" ,ghc-network)
+ ("ghc-network-bsd" ,ghc-network-bsd)
+ ("ghc-network-uri" ,ghc-network-uri)
+ ("ghc-base64-bytestring" ,ghc-base64-bytestring)
+ ("ghc-blaze-html" ,ghc-blaze-html)
+ ("ghc-exceptions" ,ghc-exceptions)
+ ("ghc-extensible-exceptions"
+ ,ghc-extensible-exceptions)
+ ("ghc-hslogger" ,ghc-hslogger)
+ ("ghc-html" ,ghc-html)
+ ("ghc-monad-control" ,ghc-monad-control)
+ ("ghc-old-locale" ,ghc-old-locale)
+ ("ghc-semigroups" ,ghc-semigroups)
+ ("ghc-sendfile" ,ghc-sendfile)
+ ("ghc-system-filepath" ,ghc-system-filepath)
+ ("ghc-syb" ,ghc-syb)
+ ("ghc-threads" ,ghc-threads)
+ ("ghc-transformers-base" ,ghc-transformers-base)
+ ("ghc-transformers-compat"
+ ,ghc-transformers-compat)
+ ("ghc-utf8-string" ,ghc-utf8-string)
+ ("ghc-zlib" ,ghc-zlib)))
+ (native-inputs `(("ghc-hunit" ,ghc-hunit)))
+ (home-page "http://happstack.com")
+ (synopsis "Web related tools and services for Haskell")
+ (description
+ "Happstack Server provides an HTTP server and a rich set of functions for
+routing requests, handling query parameters, generating responses, working with
+cookies, serving files, and more.")
+ (license license:bsd-3)))
+
(define-public ghc-sendfile
(package
(name "ghc-sendfile")
--
2.24.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#38488: [PATCH] GHC-HAPPSTACK-SERVER
2019-12-04 7:31 [bug#38488] [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 2/2] gnu: Add ghc-happstack-server Brett Gilio
@ 2019-12-06 22:03 ` Brett Gilio
2 siblings, 0 replies; 4+ messages in thread
From: Brett Gilio @ 2019-12-06 22:03 UTC (permalink / raw)
To: 38488-done
close
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-12-06 22:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04 7:31 [bug#38488] [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile Brett Gilio
2019-12-04 7:34 ` [bug#38488] [PATCH 2/2] gnu: Add ghc-happstack-server Brett Gilio
2019-12-06 22:03 ` bug#38488: [PATCH] GHC-HAPPSTACK-SERVER Brett Gilio
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).