* [bug#52405] [PATCH] gnu: Add cl-zsort.
@ 2021-12-10 6:09 Foo Chuan Wei
2021-12-11 9:51 ` bug#52405: " Guillaume Le Vaillant
0 siblings, 1 reply; 2+ messages in thread
From: Foo Chuan Wei @ 2021-12-10 6:09 UTC (permalink / raw)
To: 52405
* gnu/packages/lisp-xyz.scm (cl-zsort, ecl-zsort, sbcl-zsort): New
variables.
---
Note:
In ECL, `(zsort:counting-sort #(4 5 7 3 9 2 4 2 0 8 2 4 1 5 9) :ascend t)`
fails with:
Condition of type: SIMPLE-TYPE-ERROR
In function +, the value of the first argument is
NIL
which is not of the expected type NUMBER
gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 635f8e48cb..0ac48db778 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -19868,6 +19868,40 @@ library inspired by @code{cl-data-format-validation} and WTForms validators.")
(define-public ecl-restas
(sbcl-package->ecl-package sbcl-restas))
+(define-public sbcl-zsort
+ (let ((commit "f6724a6fff7662a942195cedb0d7f00da59c74ed")
+ (revision "1"))
+ (package
+ (name "sbcl-zsort")
+ (version (git-version "0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jorgetavares/zsort")
+ (commit commit)))
+ (file-name (git-file-name "cl-zsort" version))
+ (sha256
+ (base32 "1vyklyh99712zsll4qi0m4mm8yb1nz04403vl8i57bjv5p5max49"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ `(("alexandria" ,sbcl-alexandria)))
+ (home-page "https://github.com/jorgetavares/zsort")
+ (synopsis "Collection of portable sorting algorithms in Common Lisp")
+ (description
+ "@code{zsort} is a collection of portable sorting algorithms. Common
+Lisp provides the @code{sort} and @code{stable-sort} functions but these can
+have different algorithms implemented according to each implementation. Also,
+the standard sorting functions might not be the best for a certain situations.
+This library aims to provide developers with more options.")
+ (license license:expat))))
+
+(define-public cl-zsort
+ (sbcl-package->cl-source-package sbcl-zsort))
+
+(define-public ecl-zsort
+ (sbcl-package->ecl-package sbcl-zsort))
+
(define-public sbcl-cl-https-everywhere
;; No release.
;; Don't forget to update the https-everywhere input.
base-commit: e1973ae74beb2880c11593155849f43e23ef620c
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#52405: [PATCH] gnu: Add cl-zsort.
2021-12-10 6:09 [bug#52405] [PATCH] gnu: Add cl-zsort Foo Chuan Wei
@ 2021-12-11 9:51 ` Guillaume Le Vaillant
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2021-12-11 9:51 UTC (permalink / raw)
To: Foo Chuan Wei; +Cc: 52405-done
[-- Attachment #1: Type: text/plain, Size: 66 bytes --]
Patch pushed as e9c6be11260b1487ee241855d8189e1441f6bf8d.
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-11 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-10 6:09 [bug#52405] [PATCH] gnu: Add cl-zsort Foo Chuan Wei
2021-12-11 9:51 ` bug#52405: " Guillaume Le Vaillant
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).