unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Hallsby via Guix-patches via <guix-patches@gnu.org>
To: 64778@debbugs.gnu.org
Cc: Karl Hallsby <karl@hallsby.com>
Subject: [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb
Date: Fri, 21 Jul 2023 18:50:55 -0500	[thread overview]
Message-ID: <0ba36e2694f1f6194ac52503e64eae5c182a9980.1689982943.git.karl@hallsby.com> (raw)
In-Reply-To: <cover.1689982943.git.karl@hallsby.com>

* 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





  reply	other threads:[~2023-07-21 23:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-07-21 23:50 ` [bug#64778] [PATCH 2/5] gnu: Add go-github-com-cheggaaa-pb-v1 Karl Hallsby via Guix-patches via
2023-07-21 23:50 ` [bug#64778] [PATCH 3/5] gnu: Add go-github-com-marcinbor85-gohex Karl Hallsby via Guix-patches via
2023-07-21 23:50 ` [bug#64778] [PATCH 4/5] gnu: Add go-github-com-carrlos0-spin Karl Hallsby via Guix-patches via
2023-07-21 23:50 ` [bug#64778] [PATCH 5/5] gnu: Add wally-cli Karl Hallsby via Guix-patches via
2024-03-29 14:26 ` bug#64778: [PATCH 0/5] " Sharlatan Hellseher
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ba36e2694f1f6194ac52503e64eae5c182a9980.1689982943.git.karl@hallsby.com \
    --to=guix-patches@gnu.org \
    --cc=64778@debbugs.gnu.org \
    --cc=karl@hallsby.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).