(name . guix-patches@gnu.org)(address . guix-patches@gnu.org)(name . gravitydiv10@protonmail.com)(address . gravitydiv10@protonmail.com)
From 9aed5d465ef63e1d72c40581935db1906d3d0dd5 Mon Sep 17 00:00:00 2001
Message-ID: <9aed5d465ef63e1d72c40581935db1906d3d0dd5.1700662237.git.gravitydiv10@protonmail.com>
In-Reply-To: <a61e0dec65d0b4c9f04dc5bc6bb4768d0ff170d9.1700662237.git.gravitydiv10@protonmail.com>
References: <a61e0dec65d0b4c9f04dc5bc6bb4768d0ff170d9.1700662237.git.gravitydiv10@protonmail.com>
From: Lu <gravitydiv10@protonmail.com>
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(+)
Toggle diff (36 lines)
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