Subject: [PATCH 1/2] gnu: Add go-github-com-hanwen-usb.

From: Junker <[email-masked]>
Date: Thu, 22 May 2025 21:39:23 +0700

* gnu/packages/libusb.scm (go-github-com-hanwen-usb): New variable.

Change-Id: I4a70f9adf0b33bd669162cbb8e329ae6c10a6a56
---
 gnu/packages/libusb.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index a6e24f8c41..ebb3d8a92a 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2023 Sharlatan Hellseher <[email-masked]>
 ;;; Copyright © 2023 Foundation Devices, Inc. <[email-masked]>
 ;;; Copyright © 2024 hapster <[email-masked]>
+;;; Copyright © 2025 Junker <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -209,6 +210,33 @@ (define-public go-github-com-google-gousb
 Go-like binding.")
     (license license:asl2.0)))
 
+(define-public go-github-com-hanwen-usb
+  (let ((commit "69aee4530ac705cec7c5344418d982aaf15cf0b1")
+        (revision "1"))
+    (package
+      (name "go-github-com-hanwen-usb")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/hanwen/usb")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "01k0c2g395j65vm1w37mmrfkg6nm900khjrrizzpmx8f8yf20dky"))))
+      (build-system go-build-system)
+      (inputs (list libusb))
+      (native-inputs (list pkg-config))
+      (arguments
+       (list
+        #:tests? #f ;no tests
+        #:import-path "github.com/hanwen/usb"))
+      (home-page "https://github.com/hanwen/usb")
+      (synopsis "CGO bindings for libusb")
+      (description "These are CGO bindings for libusb")
+      (license license:bsd-3))))
+
 (define-public java-usb4java
   (package
     (name "java-usb4java")
-- 
2.49.0