Subject: [bug#75677] [PATCH rust-team 85/89] gnu: rust-fancy-regex-0.10: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:49:59 -0500

* gnu/packages/crates-io.scm (rust-fancy-regex-0.10): New variable.
---
 gnu/packages/crates-io.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cfc4f7b965..214e58e13c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25471,10 +25471,36 @@ (define-public rust-fancy-regex-0.11
                                    ("rust-matches" ,rust-matches-0.1)
                                    ("rust-quickcheck" ,rust-quickcheck-1))))))
 
-(define-public rust-fancy-regex-0.7
+(define-public rust-fancy-regex-0.10
   (package
     (inherit rust-fancy-regex-0.11)
     (name "rust-fancy-regex")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "fancy-regex" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0rn7wfihsk877h3kwzzm99ykflfkhg039l4synm9algs8qnsny06"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (("\"= ([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                   (string-append "\"^" version)))))))
+    (arguments
+     `(#:cargo-inputs (("rust-bit-set" ,rust-bit-set-0.5)
+                       ("rust-regex" ,rust-regex-1))
+       #:cargo-development-inputs (("rust-bitflags" ,rust-bitflags-1)
+                                   ("rust-criterion" ,rust-criterion-0.3)
+                                   ("rust-half" ,rust-half-1)
+                                   ("rust-matches" ,rust-matches-0.1)
+                                   ("rust-quickcheck" ,rust-quickcheck-1))))))
+
+(define-public rust-fancy-regex-0.7
+  (package
+    (inherit rust-fancy-regex-0.10)
+    (name "rust-fancy-regex")
     (version "0.7.1")
     (source
      (origin
-- 
2.47.1