From patchwork Sun Nov 29 22:32:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 25449 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 D888A27BBF9; Sun, 29 Nov 2020 22:35:25 +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 A23D727BC0C for ; Sun, 29 Nov 2020 22:35:13 +0000 (GMT) Received: from localhost ([::1]:36116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjVHk-0000X6-Lw for patchwork@mira.cbaines.net; Sun, 29 Nov 2020 17:35:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjVGg-0008VY-9t for guix-patches@gnu.org; Sun, 29 Nov 2020 17:34:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41328) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjVGf-0005cN-7n for guix-patches@gnu.org; Sun, 29 Nov 2020 17:34:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjVGf-0002VO-5Q for guix-patches@gnu.org; Sun, 29 Nov 2020 17:34:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44954] [PATCH 08/12] gnu: Add ghc-wai-handler-launch. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Nov 2020 22:34:05 +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.16066892159515 (code B ref 44954); Sun, 29 Nov 2020 22:34:05 +0000 Received: (at 44954) by debbugs.gnu.org; 29 Nov 2020 22:33:35 +0000 Received: from localhost ([127.0.0.1]:52859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjVGA-0002TJ-Vq for submit@debbugs.gnu.org; Sun, 29 Nov 2020 17:33:35 -0500 Received: from latitanza.investici.org ([82.94.249.234]:44369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjVFy-0002Rv-0T for 44954@debbugs.gnu.org; Sun, 29 Nov 2020 17:33:22 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4CkjnF3rRBz8sgt; Sun, 29 Nov 2020 22:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1606689201; bh=+6f/QTCm6grf+PgywjsE58vafKM/sWVOTM4GC1kXkQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XV76r3DeVJx8cSrcgNSCg/HH5xZA6FyH/S6jpo0SCS2c8PzNyGocBVSFJo5lZ60Fw 5K89RZwv06ziu56cVi4nOIogx0SOpQLL5uocernXOV1QitPTZ8xJd7xOn7PDB17tWP iXXSiavH1KixhkbUC9reh9l4aEUKx4GnV/X2HRE4= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4CkjnF1PPnz8sgL; Sun, 29 Nov 2020 22:33:21 +0000 (UTC) From: Giacomo Leidi Date: Sun, 29 Nov 2020 23:32:57 +0100 Message-Id: <20201129223301.19210-8-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201129223301.19210-1-goodoldpaul@autistici.org> References: <20201129223301.19210-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-handler-launch): New variable. --- gnu/packages/haskell-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index 12cd8a2a0d..ae923dc6f1 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -2213,3 +2213,34 @@ changing the semantics.") "This package provides static file serving subsite for Yesod Web Framework.") (license license:expat))) + +(define-public ghc-wai-handler-launch + (package + (name "ghc-wai-handler-launch") + (version "3.0.3.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/wai-handler-launch/wai-handler-launch-" + version + ".tar.gz")) + (sha256 + (base32 + "1ifqgyc1ccig5angh5l1iq7vyms4lvi8wzvysg5dw82nml49n02m")))) + (build-system haskell-build-system) + (inputs + `(("ghc-wai" ,ghc-wai) + ("ghc-warp" ,ghc-warp) + ("ghc-http-types" ,ghc-http-types) + ("ghc-streaming-commons" ,ghc-streaming-commons) + ("ghc-async" ,ghc-async))) + (home-page + "http://hackage.haskell.org/package/wai-handler-launch") + (synopsis + "Launch a web app in the default browser") + (description + "This package handles cross-platform launching and inserts +Javascript code to ping the server. When the server no longer +receives pings, it shuts down.") + (license license:expat)))