diff mbox series

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

Message ID f0b0f9a649f5e2956d923a2163c0370ae0cc4be6.1720567735.git.w@wmeyer.eu
State New
Headers show
Series gnu: Add ouch. | expand

Commit Message

Wilko Meyer July 9, 2024, 11:37 p.m. UTC
* 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 mbox series

Patch

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")