(address . guix-patches@gnu.org)
From c97de00efc8dfe17a2cedda69033eaa710c42a6e Mon Sep 17 00:00:00 2001
From: Amirouche <amirouche.boubekki@gmail.com>
Date: Sat, 9 Feb 2019 00:07:48 +0100
Subject: [PATCH] gnu: Add termbox-truecolor.
* gnu/packages/terminals.scm (termbox-truecolor): New variable.
---
gnu/packages/terminals.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Toggle diff (53 lines)
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 7f52c6efd..0ff0eda35 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -13,6 +13,7 @@
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2018 Gabriel Hondet <gabrielhondet@gmail.com>
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
+;;; Copyright © 2019 Amirouche Boubekki <amirouche@hypermove.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -36,6 +37,7 @@
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system go)
#:use-module (guix build-system python)
+ #:use-module (guix build-system waf)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages)
@@ -1015,3 +1017,30 @@ arbitrary programs of your choice. This is useful for browsing the history
comfortably in a pager or editor.
@end itemize")
(license license:gpl3+)))
+
+(define-public termbox-truecolor
+ (package
+ (name "termbox-truecolor")
+ (version "2019.01.06-c3afbfd")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/amirouche/termbox-truecolor.git")
+ (commit "c3afbfd8f31cce70ffb8c4ddd153489d9e363780")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "179py858dhhxkj6la84b224r2fjwavygf4daw4dgl3gvv8i07ryj"))))
+ (build-system waf-build-system)
+ (arguments
+ `(#:tests? #f))
+ (synopsis "Library for writing text-based user interfaces (with true-color support)")
+ (description "Termbox is a library that provides minimalistic API which
+allows the programmer to write text-based user interfaces.
+
+It is based on a simple abstraction: viewing terminals as a table of
+fixed-size cells and input being a stream of structured messages. Copy &
+pasting and wide characters (mostly Chinese, Japanese, Korean (CJK)
+characters) are not really supported.")
+ (home-page "https://github.com/amirouche/termbox-truecolor/tree/truecolor")
+ (license license:expat)))
--
2.19.1