Subject: [PATCH v2 rust-team 02/23] gnu: Add rust-nucleo-0.2.

From: Murilo <[email-masked]>
Date: Fri, 29 Nov 2024 11:36:25 -0300

* gnu/packages/crates-io.scm (rust-nucleo-0.2): New variable.

Change-Id: I0ee23791f2569ecea3e30d689465da63fc8e881b
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index db4edce680..a9c1b2b2a1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45,6 +45,7 @@
 ;;; Copyright © 2024 Aaron Covrig <[email-masked]>
 ;;; Copyright © 2024 Nguyễn Gia Phong <[email-masked]>
 ;;; Copyright © 2024 Jordan Moore <[email-masked]>
+;;; Copyright © 2024 Murilo <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -42968,6 +42969,28 @@ (define-public rust-lz4-sys-1
     (description "This is the Rust LZ4 sys package.")
     (license license:expat)))
 
+(define-public rust-nucleo-0.2
+  (package
+    (name "rust-nucleo")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nucleo" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1wzx32bz4n68dcd3yw57195sz49hdhv9b75jikr5qiyfpks32lxf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-nucleo-matcher" ,rust-nucleo-matcher-0.2)
+                       ("rust-parking-lot" ,rust-parking-lot-0.12)
+                       ("rust-rayon" ,rust-rayon-1))))
+    (home-page "https://github.com/helix-editor/nucleo")
+    (synopsis "Plug and play high performance fuzzy matcher")
+    (description
+     "This package provides plug and play high performance fuzzy matcher.")
+    (license license:mpl2.0)))
+
 (define-public rust-rust-lzma-0.5
   (package
     (name "rust-rust-lzma")
-- 
2.46.0