From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#38488] [PATCH 1/2] gnu: Add ghc-sendfile. References: <871rtkr1g8.fsf@posteo.net> In-Reply-To: <871rtkr1g8.fsf@posteo.net> Resent-Message-ID: From: Brett Gilio Date: Wed, 04 Dec 2019 01:34:07 -0600 Message-ID: <87y2vspms0.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-ghc-sendfile.patch Content-Description: [PATCH 1/2] gnu: Add ghc-sendfile. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38488@debbugs.gnu.org >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