From patchwork Sun Nov 3 20:17:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 15956 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 C250F17607; Sun, 3 Nov 2019 20:18:09 +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,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 8214817512 for ; Sun, 3 Nov 2019 20:18:09 +0000 (GMT) Received: from localhost ([::1]:56030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMK9-0002AW-38 for patchwork@mira.cbaines.net; Sun, 03 Nov 2019 15:18:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48015) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMK3-0002AK-Gy for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRMK2-0003bs-DM for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRMK2-0003bl-AJ for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRMK2-0003Jn-3M for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses. References: <20191103201551.3377-1-efraim@flashner.co.il> In-Reply-To: <20191103201551.3377-1-efraim@flashner.co.il> Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Nov 2019 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38048 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38048@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 38048-submit@debbugs.gnu.org id=B38048.157281226812719 (code B ref 38048); Sun, 03 Nov 2019 20:18:02 +0000 Received: (at 38048) by debbugs.gnu.org; 3 Nov 2019 20:17:48 +0000 Received: from localhost ([127.0.0.1]:35156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRMJn-0003J5-Mh for submit@debbugs.gnu.org; Sun, 03 Nov 2019 15:17:47 -0500 Received: from flashner.co.il ([178.62.234.194]:44336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRMJm-0003Ir-Ly for 38048@debbugs.gnu.org; Sun, 03 Nov 2019 15:17:47 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id DC0594021F; Sun, 3 Nov 2019 20:17:40 +0000 (UTC) From: Efraim Flashner Date: Sun, 3 Nov 2019 22:17:38 +0200 Message-Id: <20191103201739.3524-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 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: , Reply-To: 20191103201551.3377-1-efraim@flashner.co.il 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-ncurses): New variable. --- gnu/packages/haskell-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 217c78a08c..e0cb34cd67 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -6753,6 +6753,43 @@ between 2 and 3 times faster than the Mersenne Twister.") `(("ghc-hashable" ,ghc-hashable-bootstrap))) (properties '((hidden? #t))))) +(define-public ghc-ncurses + (package + (name "ghc-ncurses") + (version "0.2.16") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/ncurses/ncurses-" + version ".tar.gz")) + (sha256 + (base32 + "0gsyyaqyh5r9zc0rhwpj5spyd6i4w2vj61h4nihgmmh0yyqvf3z5")))) + (build-system haskell-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'build 'fix-includes + (lambda _ + (substitute* '("cbits/hsncurses-shim.h" + "lib/UI/NCurses.chs" + "lib/UI/NCurses/Enums.chs" + "lib/UI/NCurses/Panel.chs") + (("