Subject: [PATCH] gnu: Add toilet.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Sat, 04 Jan 2025 12:53:17 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

From 0c374e5acea8c62af9778058cb4eaef1c7679ace Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Evgeny Pisemsky <[email-masked]>
Date: Sat, 4 Jan 2025 12:40:14 +0300
Subject: [PATCH] gnu: Add toilet.

* gnu/packages/figlet.scm (toilet): New variable.

Change-Id: I5288b45e9a5f350dd5682447990493da85fbd7a5
---
 gnu/packages/figlet.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/figlet.scm b/gnu/packages/figlet.scm
index 5e19dafee3..afd2e86fab 100644
--- a/gnu/packages/figlet.scm
+++ b/gnu/packages/figlet.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Steve Sprang <[email-masked]>
+;;; Copyright © 2025 Evgeny Pisemsky <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,7 +21,9 @@ (define-module (gnu packages figlet)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages video))
 
 (define-public figlet
   (package
@@ -44,3 +47,26 @@ (define-public figlet
     (description "FIGlet is a program for making large ASCII art letterforms
 out of ordinary screen characters.")
     (license license:bsd-3)))
+
+(define-public toilet
+  (package
+    (name "toilet")
+    (version "0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://caca.zoy.org/raw-attachment/wiki/toilet/toilet-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "1pl118qb7g0frpgl9ps43w4sd0psjirpmq54yg1kqcclqcqbbm49"))))
+    (build-system gnu-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list libcaca))
+    (home-page "http://caca.zoy.org/wiki/toilet")
+    (synopsis "Display large colourful characters")
+    (description
+     "The TOIlet project attempts to create a free replacement for the
+​FIGlet utility.  It uses the powerful libcaca library to achieve
+various text-based effects.")
+    (license license:wtfpl2)))

base-commit: 321edcf0744a8895690579e8a5b09b66c75d102c
-- 
2.47.1