From patchwork Wed Dec 4 07:34:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brett Gilio X-Patchwork-Id: 16372 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5AAED1783F; Wed, 4 Dec 2019 07:36:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0BA381783D for ; Wed, 4 Dec 2019 07:36:00 +0000 (GMT) Received: from localhost ([::1]:34864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icPCY-0003GJ-J8 for patchwork@mira.cbaines.net; Wed, 04 Dec 2019 02:35:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45040) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icPBg-00033R-ET for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icPBe-0004tv-1z for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icPBd-0004t1-SO for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icPBd-0005o2-PQ for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile. References: <871rtkr1g8.fsf@posteo.net> In-Reply-To: <871rtkr1g8.fsf@posteo.net> Resent-From: Brett Gilio Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Dec 2019 07:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38488 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38488@debbugs.gnu.org Received: via spool by 38488-submit@debbugs.gnu.org id=B38488.157544486122254 (code B ref 38488); Wed, 04 Dec 2019 07:35:01 +0000 Received: (at 38488) by debbugs.gnu.org; 4 Dec 2019 07:34:21 +0000 Received: from localhost ([127.0.0.1]:41374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icPAy-0005mr-Lt for submit@debbugs.gnu.org; Wed, 04 Dec 2019 02:34:20 -0500 Received: from mout02.posteo.de ([185.67.36.66]:41611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icPAw-0005me-GI for 38488@debbugs.gnu.org; Wed, 04 Dec 2019 02:34:19 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 842662400FB for <38488@debbugs.gnu.org>; Wed, 4 Dec 2019 08:34:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575444852; bh=61Du7jxMlXrX3/A9fq8rDmjksdgey1rhLo4RIO4Q0JU=; h=From:To:Subject:Date:From; b=nElc8M/19UKf3BWpBUF0ateWqTkfbIiYxF4p2nALKmXpimzyF0RebOQAQYrXDGN5a KINXtqTS8tVKuOhQKP5erA9R9Uifhnxr7FESCsv9KeQmVDZf/PeB4zdAie+BIUjZqT SWuOY6VCxQKeRRAMesvsD1L4f9mggZ7jp/zQCg+Xfb6HpYoV6U4fGBQPLAR9G1mXw2 VaLxi0D4mxjYmp0Cb7nprIps6TuBakePMBSOYpq/VsO16onLnKo4hzMQYrYYoMFXDE 3TqrcMl6GSChU7J/Z4wuVvZtv9AGiP6KEjPMuZsHeq8/2PYD+CydPUuD9DbYoSjvW7 EYVUcJwW8IHtw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47SVwM28BJz9rxM for <38488@debbugs.gnu.org>; Wed, 4 Dec 2019 08:34:11 +0100 (CET) From: Brett Gilio Date: Wed, 04 Dec 2019 01:34:07 -0600 Message-ID: <87y2vspms0.fsf@posteo.net> MIME-Version: 1.0 Content-Disposition: inline; filename=0001-gnu-Add-ghc-sendfile.patch Content-Description: [PATCH 1/2] gnu: Add ghc-sendfile. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From bef2ec92972c3fbef7558edc9d9ba37d7ca98d68 Mon Sep 17 00:00:00 2001 From: Brett Gilio 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 From patchwork Wed Dec 4 07:34:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brett Gilio X-Patchwork-Id: 16373 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5AC6017840; Wed, 4 Dec 2019 07:59:47 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 152E81783E for ; Wed, 4 Dec 2019 07:59:47 +0000 (GMT) Received: from localhost ([::1]:35024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icPZa-0000fX-L7 for patchwork@mira.cbaines.net; Wed, 04 Dec 2019 02:59:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45074) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icPBf-000343-UZ for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icPBe-0004wo-HC for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icPBe-0004vh-Bl for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icPBe-0005oA-7d for guix-patches@gnu.org; Wed, 04 Dec 2019 02:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38488] [PATCH 2/2] gnu: Add ghc-happstack-server. References: <871rtkr1g8.fsf@posteo.net> In-Reply-To: <871rtkr1g8.fsf@posteo.net> Resent-From: Brett Gilio Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Dec 2019 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38488 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38488@debbugs.gnu.org Received: via spool by 38488-submit@debbugs.gnu.org id=B38488.157544487522283 (code B ref 38488); Wed, 04 Dec 2019 07:35:02 +0000 Received: (at 38488) by debbugs.gnu.org; 4 Dec 2019 07:34:35 +0000 Received: from localhost ([127.0.0.1]:41377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icPBC-0005nL-UG for submit@debbugs.gnu.org; Wed, 04 Dec 2019 02:34:35 -0500 Received: from mout01.posteo.de ([185.67.36.65]:53751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icPBA-0005n5-QB for 38488@debbugs.gnu.org; Wed, 04 Dec 2019 02:34:33 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9185D16005C for <38488@debbugs.gnu.org>; Wed, 4 Dec 2019 08:34:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575444866; bh=R9SZuPc4r4VZ9Ij0hQY4thgDgkcBjAFK//0rMbeF1Yg=; h=From:To:Subject:Date:From; b=chiZlpjTiulQKKefkR/1d3z4JTvtUhSXfWkAov7co7ipakOADAdL9uquzQYd9GJ4R Cmm1CjDSjpdJgPQkhjoQ5mh72T7RILrXt1qwDmZ6FcNtFP3GqvjKkCxwVg68pmJe5Y J96f0owfGLO83mffInOqsfn5wzmMpT1NJMB7k6UgQwbZ64Jsxf5i8jPD1IZN0AMVnb ozeKX+b0JzrzwuLDbydD8ksZCTesP2Fjsw7jhexowF/6CQpVs6bGEERslTrm4Y7hbG 7//UdnJEqRqNK3sL159on9/7JH/xXOb6zu+KN6/I2TbliO9hzDjb269ByYvbFGkmmn 6GL82gW2622nw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47SVwd2RkFz6tmG for <38488@debbugs.gnu.org>; Wed, 4 Dec 2019 08:34:25 +0100 (CET) From: Brett Gilio Date: Wed, 04 Dec 2019 01:34:21 -0600 Message-ID: <87v9qwpmrm.fsf@posteo.net> MIME-Version: 1.0 Content-Disposition: inline; filename=0002-gnu-Add-ghc-happstack-server.patch Content-Description: [PATCH 2/2] gnu: Add ghc-happstack-server. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From cf5229f98030e835dd687b933713dc1a10d7ce92 Mon Sep 17 00:00:00 2001 From: Brett Gilio 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