Subject: [bug#73856] [PATCH 8/8] gnu: Add cyme.

From: Wilko Meyer <[email-masked]>
Date: Fri, 18 Oct 2024 01:56:41 +0200

* gnu/packages/rust-apps.scm (cyme): New variable.

Change-Id: I5333cd619e5c609f65e29ce6dbfe1ac64b8603bd
---
 gnu/packages/rust-apps.scm | 45 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index e6cce4d372..7e7ca61562 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -439,6 +439,51 @@ (define-public complgen
 from a single, concise, @code{EBNF}-like grammar.")
     (license license:asl2.0)))
 
+(define-public cyme
+  (package
+    (name "cyme")
+    (version "1.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cyme" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0qss8cpsdbxlljscd046a14d624k5kcawwlw9n9r60shk9gljqpj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;; disable tests as they try to access host USB
+       #:cargo-inputs (("rust-clap" ,rust-clap-4)
+                       ("rust-clap-complete" ,rust-clap-complete-4)
+                       ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+                       ("rust-colored" ,rust-colored-2)
+                       ("rust-dirs" ,rust-dirs-4)
+                       ("rust-heck" ,rust-heck-0.4)
+                       ("rust-itertools" ,rust-itertools-0.10)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-rusb" ,rust-rusb-0.9)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-serde-with" ,rust-serde-with-2)
+                       ("rust-simple-logger" ,rust-simple-logger-4)
+                       ("rust-strum" ,rust-strum-0.24)
+                       ("rust-strum-macros" ,rust-strum-macros-0.24)
+                       ("rust-terminal-size" ,rust-terminal-size-0.2)
+                       ("rust-udev" ,rust-udev-0.8)
+                       ("rust-udevrs" ,rust-udevrs-0.3)
+                       ("rust-usb-ids" ,rust-usb-ids-1))
+       #:cargo-development-inputs (("rust-assert-json-diff" ,rust-assert-json-diff-2)
+                                   ("rust-diff" ,rust-diff-0.1))))
+    (home-page "https://github.com/tuna-f1sh/cyme")
+    (synopsis
+     "List system USB buses and devices")
+    (description
+     "This package provides a CLI tool to list system USB buses and devices similar
+to lsusb.")
+    (license license:gpl3+)))
+
 (define-public diffr
   (package
     (name "diffr")
-- 
2.46.0