Subject: [bug#70146] [PATCH 059/147] gnu: Add rust-capstone-0.9.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:04:11 +0200

* gnu/packages/crates-io.scm (rust-capstone-0.9): New variable.

Change-Id: I9393126aaadc8ee95ab0fcb097307c8407c6ff14
---
 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 205041cb5d..4c48053f95 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9712,6 +9712,28 @@ (define-public rust-caps-0.3
         ("rust-error-chain" ,rust-error-chain-0.12)
         ("rust-libc" ,rust-libc-0.2))))))
 
+(define-public rust-capstone-0.9
+  (package
+    (name "rust-capstone")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "capstone" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1v19wszrrhidh6z1ms0hda0dl4p0fl2n1mhx5mwkjfffnj03r2qp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-capstone-sys" ,rust-capstone-sys-0.13)
+                       ("rust-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/capstone-rust/capstone-rs")
+    (synopsis "High-level bindings to the capstone disassembly library")
+    (description "High level bindings to capstone disassembly engine
+(https://capstone-engine.org/)")
+    (license license:expat)))
+
 ;; FIXME: This package contains bundled capstone sources and no easy way
 ;; to opt out and use system libraries.
 (define-public rust-capstone-sys-0.13
-- 
2.41.0