summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJacob MacDonald <jaccarmac@gmail.com>2021-12-08 21:01:24 -0600
committerGuillaume Le Vaillant <glv@posteo.net>2021-12-16 11:06:27 +0100
commit92433c2d7444b061cebe5d35b802a86e4ef32011 (patch)
treea737618b56f977f76cb79b4553e5580c07b7cc02 /gnu/packages
parentd1269c65d3ab36bd9a9a10af5eb085b92f710280 (diff)
gnu: Add cl-decimals.
* gnu/packages/lisp-xyz.scm (sbcl-decimals, cl-decimals, ecl-decimals): New variables. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/lisp-xyz.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 77f8defb6f..3afe2547bc 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20069,3 +20069,32 @@ produce desired ranges.")
(define-public ecl-random-state
(sbcl-package->ecl-package sbcl-random-state))
+
+(define-public sbcl-decimals
+ (package
+ (name "sbcl-decimals")
+ (version "2021")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tlikonen/cl-decimals")
+ (commit version)))
+ (file-name (git-file-name "cl-decimals" version))
+ (sha256
+ (base32 "0wn5hq1pwd3wpjqqhpjzarcdk1q6416g8y447iaf55j5nbhlmbn6"))))
+ (build-system asdf-build-system/sbcl)
+ (home-page "https://github.com/tlikonen/cl-decimals")
+ (synopsis "Decimal number parser and formatting package for Common Lisp")
+ (description "This Common Lisp package offers functions for parsing and
+formatting decimal numbers. The package's main interface are the functions
+@code{parse-decimal-number} and @code{format-decimal-number}. The former is
+for parsing strings for decimal numbers and the latter for pretty-printing
+them as strings.")
+ (license license:cc0)))
+
+(define-public cl-decimals
+ (sbcl-package->cl-source-package sbcl-decimals))
+
+(define-public ecl-decimals
+ (sbcl-package->ecl-package sbcl-decimals))