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") + ((" X-Patchwork-Id: 15957 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 7C51C17607; Sun, 3 Nov 2019 20:18:14 +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 3D4CD17512 for ; Sun, 3 Nov 2019 20:18:14 +0000 (GMT) Received: from localhost ([::1]:56032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMKD-0002Gr-QH for patchwork@mira.cbaines.net; Sun, 03 Nov 2019 15:18:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48019) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMK4-0002AL-0X for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRMK2-0003cC-Qz for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRMK2-0003c7-O2 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-0003Ju-In for guix-patches@gnu.org; Sun, 03 Nov 2019 15:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38048] [PATCH 2/2] gnu: Add scroll. 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.157281227212739 (code B ref 38048); Sun, 03 Nov 2019 20:18:02 +0000 Received: (at 38048) by debbugs.gnu.org; 3 Nov 2019 20:17:52 +0000 Received: from localhost ([127.0.0.1]:35159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRMJs-0003JP-1m for submit@debbugs.gnu.org; Sun, 03 Nov 2019 15:17:52 -0500 Received: from flashner.co.il ([178.62.234.194]:44340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRMJp-0003Iv-4c for 38048@debbugs.gnu.org; Sun, 03 Nov 2019 15:17:49 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 43DF4402CF; Sun, 3 Nov 2019 20:17:43 +0000 (UTC) From: Efraim Flashner Date: Sun, 3 Nov 2019 22:17:39 +0200 Message-Id: <20191103201739.3524-2-efraim@flashner.co.il> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191103201739.3524-1-efraim@flashner.co.il> References: <20191103201739.3524-1-efraim@flashner.co.il> 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-apps.scm (scroll): New variable. --- gnu/packages/haskell-apps.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index 0fab912f4f..a2fa5d085d 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -599,6 +599,37 @@ proved to be an excellent learning experience for the programmers. Everything is programmed in Haskell.") (license license:bsd-3))) +(define-public scroll + (package + (name "scroll") + (version "1.20180421") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/scroll/scroll-" + version ".tar.gz")) + (sha256 + (base32 + "0apzrvf99rskj4dbmn57jjxrsf19j436s8a09m950df5aws3a0wj")))) + (build-system haskell-build-system) + (inputs + `(("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-data-default" ,ghc-data-default) + ("ghc-ifelse" ,ghc-ifelse) + ("ghc-monad-loops" ,ghc-monad-loops) + ("ghc-ncurses" ,ghc-ncurses) + ("ghc-optparse-applicative" ,ghc-optparse-applicative) + ("ghc-random" ,ghc-random) + ("ghc-vector" ,ghc-vector))) + (home-page "https://joeyh.name/code/scroll/") + (synopsis "scroll(6), a roguelike game") + (description + "You're a bookworm that's stuck on a scroll. You have to dodge between +words and use spells to make your way down the page as the scroll is read. Go +too slow and you'll get wound up in the scroll and crushed.") + (license license:gpl2))) + (define-public shellcheck (package (name "shellcheck")