all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb
  2023-07-21 23:48 [bug#64778] [PATCH 0/5] Add wally-cli Karl Hallsby via Guix-patches via
@ 2023-07-21 23:50 ` Karl Hallsby via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Hallsby via Guix-patches via @ 2023-07-21 23:50 UTC (permalink / raw)
  To: 64778; +Cc: Karl Hallsby

* gnu/packages/golang.scm (go-github-com-google-gousb): New variable. Init at
2.1.0.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..f1a8b098ba 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -78,6 +78,7 @@ (define-module (gnu packages golang)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages libusb)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages password-utils)
@@ -8186,6 +8187,32 @@ (define-public go-github-com-google-goterm
 and from termios translations, readCh, reading passwords, etc.")
       (license license:bsd-3))))
 
+(define-public go-github-com-google-gousb
+  (package
+   (name "go-github-com-google-gousb")
+   (version "2.1.0")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/google/gousb")
+                  (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1aki6hk009sicrf7gxy5nkjmj4j7lsy0by4kjgd9bwq8ragfyv5x"))))
+   (native-inputs (list pkg-config libusb))
+   (build-system go-build-system)
+   (arguments
+    `(#:import-path "github.com/google/gousb"
+      #:phases (modify-phases %standard-phases
+                 ;; Delete the check phase because libusbContext and
+                 ;; libusbDevHandle cannot be allocated in Go.
+                 (delete 'check))))
+   (home-page "https://github.com/google/gousb")
+   (synopsis "Go-like bindings around the libusb library")
+   (description "Go-like bindings around the libusb library")
+   (license license:asl2.0)))
+
 (define-public go-github-com-google-go-querystring
   (let ((commit "992e8021cf787c100d55520d5c906e01536c0a19") ;fix format in tests
         (revision "1"))
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb
       [not found] <cover.1689984374.git.karl@hallsby.com>
@ 2023-07-22  0:06 ` Karl Hallsby via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Hallsby via Guix-patches via @ 2023-07-22  0:06 UTC (permalink / raw)
  To: 64778; +Cc: Karl Hallsby

* gnu/packages/golang.scm (go-github-com-google-gousb): New variable. Init at
2.1.0.
---
 gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..8f02d77873 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2022 Christopher Howard <christopher@librehacker.com>
 ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 Raven Hallsby <karl@hallsby.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -78,6 +79,7 @@ (define-module (gnu packages golang)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages libusb)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages password-utils)
@@ -8186,6 +8188,32 @@ (define-public go-github-com-google-goterm
 and from termios translations, readCh, reading passwords, etc.")
       (license license:bsd-3))))
 
+(define-public go-github-com-google-gousb
+  (package
+   (name "go-github-com-google-gousb")
+   (version "2.1.0")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/google/gousb")
+                  (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1aki6hk009sicrf7gxy5nkjmj4j7lsy0by4kjgd9bwq8ragfyv5x"))))
+   (native-inputs (list pkg-config libusb))
+   (build-system go-build-system)
+   (arguments
+    `(#:import-path "github.com/google/gousb"
+      #:phases (modify-phases %standard-phases
+                 ;; Delete the check phase because libusbContext and
+                 ;; libusbDevHandle cannot be allocated in Go.
+                 (delete 'check))))
+   (home-page "https://github.com/google/gousb")
+   (synopsis "Go-like bindings around the libusb library")
+   (description "Go-like bindings around the libusb library")
+   (license license:asl2.0)))
+
 (define-public go-github-com-google-go-querystring
   (let ((commit "992e8021cf787c100d55520d5c906e01536c0a19") ;fix format in tests
         (revision "1"))
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-22  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1689984374.git.karl@hallsby.com>
2023-07-22  0:06 ` [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb Karl Hallsby via Guix-patches via
2023-07-21 23:48 [bug#64778] [PATCH 0/5] Add wally-cli Karl Hallsby via Guix-patches via
2023-07-21 23:50 ` [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb Karl Hallsby via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.