Subject: [bug#72021] [PATCH 27/38] gnu: Add rust-unrar-0.5.

From: Wilko Meyer <[email-masked]>
Date: Wed, 10 Jul 2024 01:37:07 +0200

* gnu/packages/crates-io.scm (rust-unrar-0.5): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f75fc23d1f..c1c488572e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86394,6 +86394,28 @@ (define-public rust-unrar-sys-0.3
      "This package provides FFI bindings to unrar (with minimal abstractions).")
     (license license:expat)))
 
+(define-public rust-unrar-0.5
+  (package
+    (name "rust-unrar")
+    (version "0.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unrar" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1p7byapsf6rxx3mhzqfvbbx8pmbp5is00fj94bpc5mbnwzx4p6gl"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-unrar-sys" ,rust-unrar-sys-0.3)
+                       ("rust-widestring" ,rust-widestring-1))))
+    (home-page "https://github.com/muja/unrar.rs")
+    (synopsis "List and extract RAR archives")
+    (description "This package provides functionality to list and extract RAR archives.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-unreachable-1
   (package
     (name "rust-unreachable")
-- 
2.41.0