From patchwork Fri Dec 4 19:15:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 25572 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 C7CE427BBFD; Fri, 4 Dec 2020 21:00:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 52C1327BBFC for ; Fri, 4 Dec 2020 21:00:42 +0000 (GMT) Received: from localhost ([::1]:53396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klIC1-0000Cx-26 for patchwork@mira.cbaines.net; Fri, 04 Dec 2020 16:00:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klGZj-0004nd-LF for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klGZj-0003yH-4g for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klGZj-00006H-11 for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44954] [PATCH 3/9] gnu: Add ghc-wai-app-static. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Dec 2020 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44954 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44954@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 44954-submit@debbugs.gnu.org id=B44954.160710938832722 (code B ref 44954); Fri, 04 Dec 2020 19:17:02 +0000 Received: (at 44954) by debbugs.gnu.org; 4 Dec 2020 19:16:28 +0000 Received: from localhost ([127.0.0.1]:45859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klGZ9-0008Vb-52 for submit@debbugs.gnu.org; Fri, 04 Dec 2020 14:16:28 -0500 Received: from [198.167.222.108] (port=45283 helo=devianza.investici.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klGZ6-0008Uk-9h for 44954@debbugs.gnu.org; Fri, 04 Dec 2020 14:16:25 -0500 Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4Cnj9Y5KZyz6vXd; Fri, 4 Dec 2020 19:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1607109377; bh=a3cZ18xre7UGrHrM03edGNITVd27zo6br/BHi6mXjLU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DGdEOJy2MiMv8Tgf/0gzS63qWEKGCsPWHpxiVa+ibaX1InLN/Tt8X9TQPqLFG2NpE rgyz37MIUOySxkxhgMhko49LmYnCeiQOa7QO/JSxX7OP6s4TEhnuOQd/dTyszAjETI acF6fSKtMgweNCQXRd7Qade6999DXyCELCXny9BU= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Cnj9Y3bmSz6vXR; Fri, 4 Dec 2020 19:16:17 +0000 (UTC) From: Giacomo Leidi Date: Fri, 4 Dec 2020 20:15:39 +0100 Message-Id: <20201204191545.24772-3-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201204191545.24772-1-goodoldpaul@autistici.org> References: <20201204191545.24772-1-goodoldpaul@autistici.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 * gnu/packages/haskell-web.scm (ghc-wai-app-static): New variable. --- gnu/packages/haskell-web.scm | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index f439678acc..12ab6ee40f 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -2077,3 +2077,55 @@ keep track of cookies and the last visited page. You can perform assertions on the content of HTML responses using CSS selectors.") (license license:expat))) + +(define-public ghc-wai-app-static + (package + (name "ghc-wai-app-static") + (version "3.1.7.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/" + "wai-app-static/wai-app-static-" + version + ".tar.gz")) + (sha256 + (base32 + "10k6jb450p89r6dgpnwh428gg0wfw2qbx9n126jkvbchcjr1f4v8")))) + (build-system haskell-build-system) + (inputs + `(("ghc-wai" ,ghc-wai) + ("ghc-http-types" ,ghc-http-types) + ("ghc-unix-compat" ,ghc-unix-compat) + ("ghc-old-locale" ,ghc-old-locale) + ("ghc-file-embed" ,ghc-file-embed) + ("ghc-cryptonite" ,ghc-cryptonite) + ("ghc-memory" ,ghc-memory) + ("ghc-http-date" ,ghc-http-date) + ("ghc-blaze-html" ,ghc-blaze-html) + ("ghc-blaze-markup" ,ghc-blaze-markup) + ("ghc-mime-types" ,ghc-mime-types) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-zlib" ,ghc-zlib) + ("ghc-wai-extra" ,ghc-wai-extra) + ("ghc-optparse-applicative" + ,ghc-optparse-applicative) + ("ghc-warp" ,ghc-warp))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-network" ,ghc-network) + ("ghc-temporary" ,ghc-temporary) + ("ghc-mockery" ,ghc-mockery))) + (arguments + `(#:cabal-revision + ("1" + "0bkmml30rzifvb7nxddj3pxczk0kniahra19mjn0qrkzy1n5752p"))) + (home-page + "http://www.yesodweb.com/book/web-application-interface") + (synopsis "WAI application for static serving") + (description + "This package provides a WAI application for static serving +provides some helper functions and datatypes for use outside of WAI.") + (license license:expat)))