gnu: Add cl-ansi-text.

* gnu/packages/lisp.scm (cl-ansi-text, ecl-cl-ansi-text, sbcl-cl-ansi-text): New variables.
This commit is contained in:
Pierre Neidhardt 2018-10-01 15:30:47 +02:00
parent 8caa928dd4
commit 68a7b929f3
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 38 additions and 0 deletions

View File

@ -2490,6 +2490,44 @@ This library is no longer supported by its author.")
(define-public ecl-cl-colors
(sbcl-package->ecl-package sbcl-cl-colors))
(define-public sbcl-cl-ansi-text
(let ((commit "53badf7878f27f22f2d4a2a43e6df458e43acbe9"))
(package
(name "sbcl-cl-ansi-text")
(version (git-version "1.0.0" "1" commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pnathan/cl-ansi-text")
(commit commit)))
(sha256
(base32
"11i27n0dbz5lmygiw65zzr8lx0rac6b6yysqranphn31wls6ja3v"))
(file-name (git-file-name "cl-ansi-text" version))))
(build-system asdf-build-system/sbcl)
(inputs
`(("alexandria" ,sbcl-alexandria)
("cl-colors" ,sbcl-cl-colors)))
(native-inputs
`(("fiveam" ,sbcl-fiveam)))
(synopsis "ANSI terminal color implementation for Common Lisp")
(description
"@command{cl-ansi-text} provides utilities which enable printing to an
ANSI terminal with colored text. It provides the macro @command{with-color}
which causes everything printed in the body to be displayed with the provided
color. It further provides functions which will print the argument with the
named color.")
(home-page "https://github.com/pnathan/cl-ansi-text")
;; REVIEW: The actual license is LLGPL. Should we add it to Guix?
(license license:lgpl3+))))
(define-public cl-ansi-text
(sbcl-package->cl-source-package sbcl-cl-ansi-text))
(define-public ecl-cl-ansi-text
(sbcl-package->ecl-package sbcl-cl-ansi-text))
(define-public sbcl-ascii-strings
(let ((revision "1")
(changeset "5048480a61243e6f1b02884012c8f25cdbee6d97"))