[bug#75677,rust-team,v2,11/81] gnu: rust-sanitize-filename-0.6: New variable.

Message ID 20250308033446.2101481-12-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:33 a.m. UTC
  * gnu/packages/crates-io.scm (rust-sanitize-filename-0.6): New variable.
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6b318e7fe5..c8ef158e83 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -69496,6 +69496,27 @@  (define-public rust-sanakirja-core-1
 (or elsewhere) with a stable format.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-sanitize-filename-0.6
+  (package
+    (name "rust-sanitize-filename")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sanitize-filename" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0kd37m2nd364vj09f330y853fmnw2yyy7hsmnxxnlwzbki7lz65w"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-regex" ,rust-regex-1))))
+    (home-page "https://github.com/kardeiz/sanitize-filename")
+    (synopsis "Simple filename sanitizer")
+    (description
+     "A basic filename sanitizer, based on Node's
+@url{https://www.npmjs.com/package/sanitize-filename, sanitize-filename}.")
+    (license (list license:expat))))
+
 (define-public rust-sc-0.2
   (package
     (name "rust-sc")