Subject: [bug#67755] [PATCH v5 1/9] gnu: Add edlib.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 11 Mar 2025 20:15:17 +0100

From: Sergio Pastor Pérez <[email-masked]>

* gnu/packages/cpp.scm (edlib): New variable.

Change-Id: Ia38b1d92d64134f638b13d9afb981f44a374a10e
---
 gnu/packages/cpp.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 8d482d1fbd..338455b9fb 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -43,7 +43,8 @@
 ;;; Copyright © 2024 Peepo Froggings <[email-masked]>
 ;;; Copyright © 2024 Jakob Kirsch <[email-masked]>
 ;;; Copyright © 2025 Sharlatan Hellseher <[email-masked]>
-
+;;; Copyright © 2025 Sergio Pastor Pérez <[email-masked]>
+;;;
 ;;; This file is part of GNU Guix.
 ;;;
 ;;; GNU Guix is free software; you can redistribute it and/or modify it
@@ -468,6 +469,28 @@ (define-public c2ffi
 various formats, including @code{json}.")
     (license license:gpl2+)))
 
+(define-public edlib
+  (package
+    (name "edlib")
+    (version "1.2.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/Martinsos/edlib")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ibpxs3r8ii2s3g7kdbyr8brg6ha5l0fb21idw8531gx9v2qzh4v"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
+    (home-page "https://github.com/Martinsos/edlib")
+    (synopsis "Lightweight C/C++ library for sequence alignment")
+    (description "Lightweight, C/C++ (& Python) library for sequence alignment
+using edit (Levenshtein) distance with a focus on speed.")
+    (license license:expat)))
+
 (define-public expected-lite
   (package
     (name "expected-lite")

base-commit: 3bf7a0e8c431abfcba51806ee2a3eea9e0865472
-- 
2.48.1