Subject: [bug#67381] [PATCH 10/10] gnu: Add rust-wchisp 0.2.2

From: gravitydiv10 <[email-masked]>
Date: Wed, 22 Nov 2023 14:31:07 +0000

>From 23baa78377cda046c12cd4563d048727d869ea72 Mon Sep 17 00:00:00 2001
Message-ID: <23ba[email-masked]>
In-Reply-To: <a61e[email-masked]>
References: <a61e[email-masked]>
From: Lu <[email-masked]>
Date: Wed, 22 Nov 2023 22:09:56 +0800
Subject: [PATCH 10/10] gnu: Add rust-wchisp 0.2.2

* gnu/packages/crates-io.scm (rust-wchisp-0.2): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7904795af6..09034d03da 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -82121,6 +82121,42 @@ (define-public rust-watchexec-1
 modifications.")
     (license license:asl2.0)))
 
+(define-public rust-wchisp-0.2
+  (package
+    (name "rust-wchisp")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wchisp" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1n5il94d6v4gvq0xjsdbjgdgfa769iglp395v0h3l1yjngb8b53f"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-bitfield" ,rust-bitfield-0.14)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-hex" ,rust-hex-0.4)
+                       ("rust-hxdmp" ,rust-hxdmp-0.2)
+                       ("rust-ihex" ,rust-ihex-3)
+                       ("rust-indicatif" ,rust-indicatif-0.17)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-object" ,rust-object-0.30)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-rusb" ,rust-rusb-0.9)
+                       ("rust-scroll" ,rust-scroll-0.11)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-yaml" ,rust-serde-yaml-0.9)
+                       ("rust-simplelog" ,rust-simplelog-0.12))))
+    (home-page "https://github.com/ch32-rs/wchisp")
+    (synopsis
+     "Command-line implementation of WCHISPTool, for flashing ch32 MCUs")
+    (description
+     "This package provides a command-line implementation of WCHISPTool, for flashing
+ch32 MCUs")
+    (license license:gpl2)))
+
 (define-public rust-wl-clipboard-rs-0.4
   (package
     (name "rust-wl-clipboard-rs")
-- 
2.41.0