From patchwork Mon Sep 27 02:10:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Paul Weber X-Patchwork-Id: 33337 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 6902527BBE3; Mon, 27 Sep 2021 03:11:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable 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 258A427BBE1 for ; Mon, 27 Sep 2021 03:11:21 +0100 (BST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUg6y-0003n0-8o for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 22:11:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUg6i-0003ip-3B for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUg6h-0000Wq-QU for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUg6h-0002BT-Ku for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50835] [PATCH 7/8] gnu: Add ghc-gnuidn. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 02:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50835@debbugs.gnu.org Cc: Stephen Paul Weber Received: via spool by 50835-submit@debbugs.gnu.org id=B50835.16327086478313 (code B ref 50835); Mon, 27 Sep 2021 02:11:03 +0000 Received: (at 50835) by debbugs.gnu.org; 27 Sep 2021 02:10:47 +0000 Received: from localhost ([127.0.0.1]:39200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6R-00029v-8r for submit@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:47 -0400 Received: from singpolyma.net ([192.99.233.116]:36913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6I-00028d-0L for 50835@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:39 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id AAB8F4861691; Mon, 27 Sep 2021 02:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632708637; bh=Hzsl2IJOT5iuj7RYu3Waq7A/m3BA/PvgGE6ETQYMrIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fVCZ8UniCGdRB3kfKw4G9+6QAiNbaSB6CE2EJwhJ4dAbkaK1TIy7iaCh3EIOsGWgh gqojqU6aIpRDwz7kyXztyyennuURd0jPpdHx9sXaUVhBBLTKlbawp9qn79A75A/HD5 MUuy0LUi5FRdtGo8GiI0nWcFlKsg3ARJ2doFUbB4= From: Stephen Paul Weber Date: Sun, 26 Sep 2021 21:10:32 -0500 Message-Id: <20210927021033.17700-7-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210927021033.17700-1-singpolyma@singpolyma.net> References: <20210927021033.17700-1-singpolyma@singpolyma.net> 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-xyz.scm (ghc-gnuidn): New variable. --- gnu/packages/haskell-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index bc2f94b6ac..44ab7072c9 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -60,6 +60,7 @@ #:use-module (gnu packages haskell-crypto) #:use-module (gnu packages haskell-web) #:use-module (gnu packages libffi) + #:use-module (gnu packages libidn) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) #:use-module (gnu packages lua) @@ -15906,3 +15907,37 @@ than the standard TCP connection.") (description "Low-level bindings for using gnutls from Haskell.") (license license:gpl3))) + +(define-public ghc-gnuidn + (package + (name "ghc-gnuidn") + (version "0.2.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/gnuidn/gnuidn-" + version + ".tar.gz")) + (sha256 + (base32 "0vxrcp9xz5gsvx60k12991zn5c9nk3fgg0yw7dixbsjcfqgnnd31")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'less-strict-dependencies + (lambda _ + (substitute* "gnuidn.cabal" + (("chell >= 0.4 && < 0.5") "chell <0.6")) + #t))))) + (inputs `(("libidn" ,libidn))) + (native-inputs + `(("ghc-chell" ,ghc-chell) + ("ghc-c2hs" ,ghc-c2hs) + ("ghc-chell-quickcheck" ,ghc-chell-quickcheck) + ("ghc-quickcheck" ,ghc-quickcheck) + ("pkg-config" ,pkg-config))) + (home-page "https://hackage.haskell.org/package/gnuidn") + (synopsis "Bindings for GNU IDN") + (description "Low-level bindings for using libidn in Haskell.") + (license license:gpl3)))