Subject: [PATCH] gnu: Add cl-fuzzy-match

From: Junker <[email-masked]>
Date: Sat, 25 Jan 2025 00:31:12 +0300

Change-Id: I5927d0ce1c737885e2447cd73b1f3d2e8c59e5a3
---
 gnu/packages/lisp-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index f00f0d30e2..7a5db300e5 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -5953,6 +5953,38 @@ (define-public cl-ftp
 (define-public ecl-cl-ftp
   (sbcl-package->ecl-package sbcl-cl-ftp))
 
+(define-public sbcl-fuzzy-match
+  (let ((commit "e46ca41ef4641461f7be006782e3cfdcf73ba98a")
+        (revision "1"))
+    (package
+      (name "sbcl-fuzzy-match")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/vindarel/fuzzy-match")
+               (commit commit)))
+         (file-name (git-file-name "cl-fuzzy-match" version))
+         (sha256
+          (base32 "1lawndmzkl6f9sviy7ngn2s3xkc4akp8l505kvpslaz6qq0ayyqv"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-cl-str
+                    sbcl-mk-string-metrics))
+      (home-page "htstps://github.com/Lautaro-Garcia/cl-notify")
+      (synopsis "Common Lisp library for fuzzy matching candidates from an
+input string")
+      (description
+       "From a string input and a list of candidates, return the most relevant
+candidates first")
+      (license license:expat))))
+
+(define-public cl-fuzzy-match
+  (sbcl-package->cl-source-package sbcl-fuzzy-match))
+
+(define-public ecl-fuzzy-match
+  (sbcl-package->ecl-package sbcl-fuzzy-match))
+
 (define-public sbcl-cl-gamepad
   (let ((commit "d5b99fbaa2e39294d23061699e8f1e761eda7205")
         (revision "3"))

base-commit: ea7a6fa8c66ef3cfd0ccdec6c0a7a3e7ab3dfc9c
-- 
2.47.1