[bug#75221] gnu: Add cl-transducers

Message ID a8a2fcef218547de4e14a4ee0ff1f9e5f32e82d3.1735595610.git.shilling.jake@gmail.com
State New
Headers
Series [bug#75221] gnu: Add cl-transducers |

Commit Message

Jake Shilling Dec. 30, 2024, 9:55 p.m. UTC
  Change-Id: Ia06d91c005b70528d5e5b37283e96edf040c2c69
---
 gnu/packages/lisp-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)


base-commit: 3ea95d7736be1f807d578d17c174b0976543b333
  

Comments

jgart Jan. 2, 2025, 1:04 a.m. UTC | #1
Thanks for the contribution.

Please see the pushed commit for commit style and other edits I made.
  

Patch

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index c6cde75ea1..0fc5043b4a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -32837,3 +32837,38 @@  (define-public cl-zstd
 
 (define-public ecl-zstd
   (sbcl-package->ecl-package sbcl-zstd))
+
+(define-public sbcl-cl-transducers
+  (let ((commit "9b424bd7a2eec7ad4bc258501f28170c6f00eaf2")
+        (revision "0"))
+    (package
+      (name "sbcl-cl-transducers")
+      (version (git-version "1.3.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/fosskers/cl-transducers")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0p7fqkmv0rfi5d7mmm9600qpix003bqr7as148pk157s1d44vncg"))))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       '(#:asd-systems '("transducers" "transducers/jzon" "transducers/fset")))
+      (inputs (list sbcl-cl-str sbcl-parachute))
+      (propagated-inputs (list sbcl-fset sbcl-trivia sbcl-jzon))
+      (home-page "https://fosskers.github.io/cl-transducers/")
+      (synopsis "Transducers: Ergonomic, efficient data processing")
+      (description
+       "Transducers are an ergonomic and extremely
+memory-efficient way to process a data source.  Here \"data source\" means
+simple collections like Lists or Vectors, but also potentially large files or
+generators of infinite data.")
+      (license license:expat))))
+
+(define-public cl-transducers
+  (sbcl-package->cl-source-package sbcl-cl-transducers))
+
+(define-public ecl-cl-transducers
+  (sbcl-package->ecl-package sbcl-cl-transducers))