unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#38048] [PATCH 0/2] *** Add scroll ***
@ 2019-11-03 20:15 Efraim Flashner
  2019-11-03 20:17 ` [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2019-11-03 20:15 UTC (permalink / raw)
  To: 38048; +Cc: Efraim Flashner

I have finally tried it out, and you can use scroll as a pager

Efraim Flashner (2):
  gnu: Add ghc-ncurses.
  gnu: Add scroll.

 gnu/packages/haskell-apps.scm | 31 +++++++++++++++++++++++++++++
 gnu/packages/haskell-xyz.scm  | 37 +++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

-- 
2.23.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses.
  2019-11-03 20:15 [bug#38048] [PATCH 0/2] *** Add scroll *** Efraim Flashner
@ 2019-11-03 20:17 ` Efraim Flashner
  2019-11-03 20:17   ` [bug#38048] [PATCH 2/2] gnu: Add scroll Efraim Flashner
  2019-11-10  8:41   ` bug#38048: [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
  0 siblings, 2 replies; 4+ messages in thread
From: Efraim Flashner @ 2019-11-03 20:17 UTC (permalink / raw)
  To: 38048; +Cc: Efraim Flashner

* 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")
+               (("<ncursesw/") "<"))
+             #t)))
+       #:cabal-revision
+       ("1"
+        "1wfdy716s5p1sqp2gsg43x8wch2dxg0vmbbndlb2h3d8c9jzxnca")))
+    (inputs `(("ncurses" ,ncurses)))
+    (native-inputs `(("ghc-c2hs" ,ghc-c2hs)))
+    (home-page "https://john-millikin.com/software/haskell-ncurses/")
+    (synopsis "Modernised bindings to GNU ncurses")
+    (description "GNU ncurses is a library for creating command-line application
+with pseudo-graphical interfaces.  This package is a nice, modern binding to GNU
+ncurses.")
+    (license license:gpl3)))
+
 (define-public ghc-network
   (package
     (name "ghc-network")
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#38048] [PATCH 2/2] gnu: Add scroll.
  2019-11-03 20:17 ` [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
@ 2019-11-03 20:17   ` Efraim Flashner
  2019-11-10  8:41   ` bug#38048: [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2019-11-03 20:17 UTC (permalink / raw)
  To: 38048; +Cc: Efraim Flashner

* 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")
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#38048: [PATCH 1/2] gnu: Add ghc-ncurses.
  2019-11-03 20:17 ` [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
  2019-11-03 20:17   ` [bug#38048] [PATCH 2/2] gnu: Add scroll Efraim Flashner
@ 2019-11-10  8:41   ` Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2019-11-10  8:41 UTC (permalink / raw)
  To: 38048-done

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

Patches pushed

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-10  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-03 20:15 [bug#38048] [PATCH 0/2] *** Add scroll *** Efraim Flashner
2019-11-03 20:17 ` [bug#38048] [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner
2019-11-03 20:17   ` [bug#38048] [PATCH 2/2] gnu: Add scroll Efraim Flashner
2019-11-10  8:41   ` bug#38048: [PATCH 1/2] gnu: Add ghc-ncurses Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).