Subject: [PATCH 02/10] gnu: Add rust-libusb1-sys 0.6.
From: gravitydiv10 <[email-masked]>
To: "[email-masked]" <[email-masked]>
Cc: "[email-masked]" <[email-masked]>
Date: Wed, 22 Nov 2023 14:15:45 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

From 9aed5d465ef63e1d72c40581935db1906d3d0dd5 Mon Sep 17 00:00:00 2001
Message-ID: <9aed[email-masked]>
In-Reply-To: <a61e[email-masked]>
References: <a61e[email-masked]>
From: Lu <[email-masked]>
Date: Wed, 22 Nov 2023 21:40:44 +0800
Subject: [PATCH 02/10] gnu: Add rust-libusb1-sys 0.6.

* gnu/packages/crates-io.scm (rust-libusb1-sys-0.6): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a0c357d2f0..2a4200a9bd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38132,6 +38132,29 @@ (define-public rust-libsqlite3-sys-0.20
         ("rust-pkg-config" ,rust-pkg-config-0.3)
         ("rust-vcpkg" ,rust-vcpkg-0.2))))))
 
+(define-public rust-libusb1-sys-0.6
+  (package
+    (name "rust-libusb1-sys")
+    (version "0.6.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libusb1-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09sznaf1lkahb6rfz2j0zbrcm2viz1d1wl8qlk4z4ia2rspy5l7r"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-vcpkg" ,rust-vcpkg-0.2))))
+    (home-page "https://github.com/a1ien/rusb")
+    (synopsis "Rust FFI bindings for libusb")
+    (description "This package provides a Rust interface for libusb")
+    (license license:expat)))
+
 (define-public rust-libxml-0.3
   (package
     (name "rust-libxml")
-- 
2.41.0