GNU bug report logs - #64778
[PATCH 0/5] Add wally-cli

Previous Next

Package: guix-patches;

Reported by: Karl Hallsby <karl <at> hallsby.com>

Date: Fri, 21 Jul 2023 23:50:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64778 in the body.
You can then email your comments to 64778 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Karl Hallsby <karl <at> hallsby.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 21 Jul 2023 23:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: guix-patches <at> gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 0/5] Add wally-cli
Date: Fri, 21 Jul 2023 18:48:56 -0500
wally-cli is a tiny command-line program to flash keyboard firmware to ZSA,
Ergodox, and Planck keyboards.

Karl Hallsby (5):
  gnu: Add go-github-com-google-gousb
  gnu: Add go-github-com-cheggaaa-pb-v1
  gnu: Add go-github-com-marcinbor85-gohex
  gnu: Add go-github-com-carrlos0-spin
  gnu: Add wally-cli

 gnu/packages/golang.scm | 134 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 134 insertions(+)


base-commit: eb12f3fd8bee99920118ec802ffbac8f1ab676b9
--
2.40.1




Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 1/5] gnu: Add go-github-com-google-gousb
Date: Fri, 21 Jul 2023 18:50:55 -0500
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 2/5] gnu: Add go-github-com-cheggaaa-pb-v1
Date: Fri, 21 Jul 2023 18:50:56 -0500
* gnu/packages/golang.scm (go-github-com-cheggaaa-pb-v1): New
variable. Inherit from pb-v3. Init at 1.0.28.
---
 gnu/packages/golang.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f1a8b098ba..e2ce6bc890 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10549,6 +10549,26 @@ (define-public go-github-com-cheggaaa-pb-v3
 the terminal.")
     (license license:bsd-3)))
 
+(define-public go-github-com-cheggaaa-pb-v1
+  (package
+    (inherit go-github-com-cheggaaa-pb-v3)
+    (name "go-github-com-cheggaaa-pb-v1")
+    (version "1.0.28")
+    (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/cheggaaa/pb")
+                  (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "13a66cqbpdif804qj12z9ad8r24va9q41gfk71qbc4zg1wsxs3rh"))))
+    (arguments
+     '(#:import-path "github.com/cheggaaa/pb/v1"
+       ;; XXX: it does have tests but I'm not sure how to run them.
+       ;; go-build-system is looking in the wrong directory.
+       #:tests? #f))))
+
 (define-public go-github-com-cheggaaa-pb
   (deprecated-package "go-github-com-cheggaaa-pb" go-github-com-cheggaaa-pb-v3))
 
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 3/5] gnu: Add go-github-com-marcinbor85-gohex
Date: Fri, 21 Jul 2023 18:50:57 -0500
* gnu/packages/golang.scm (go-github-com-marcinbor85-gohex): New
variable. Init on commit 55fb1c62 (master at the time).
---
 gnu/packages/golang.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e2ce6bc890..90f80c7e27 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12184,6 +12184,28 @@ (define-public aws-vault
     (home-page "https://github.com/99designs/aws-vault")
     (license license:expat)))
 
+(define-public go-github-com-marcinbor85-gohex
+  (let ((commit "55fb1c624d845f0f5b79ee946cf09a15cb50ed89")
+        (revision "0"))
+    (package
+      (name "go-github-com-marcinbor85-gohex")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/marcinbor85/gohex")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0klzqnvmkx6xvy9kc7hbsgpsdcrswnljsq8frf0jxddxi27qh1hn"))))
+      (build-system go-build-system)
+      (arguments '(#:import-path "github.com/marcinbor85/gohex"))
+      (home-page "https://github.com/marcinbor85/gohex")
+      (synopsis "A Go library for parsing Intel HEX files")
+      (description "A Go library for parsing Intel HEX files")
+      (license license:expat))))
+
 (define-public go-github-com-gsterjov-go-libsecret
   (let ((commit "a6f4afe4910cad8688db3e0e9b9ac92ad22d54e1")
         (revision "0"))
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:52:03 GMT) Full text and rfc822 format available.

Message #17 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 4/5] gnu: Add go-github-com-carrlos0-spin
Date: Fri, 21 Jul 2023 18:50:58 -0500
* gnu/packages/golang.scm (go-github-com-caarlos0-spin): New
variable. Init at 1.1.0.
---
 gnu/packages/golang.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 90f80c7e27..495e32dd18 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12636,6 +12636,26 @@ (define-public go-github-com-schollz-progressbar-v3
 is undetermined, a customizable spinner is shown.")
     (license license:expat)))
 
+(define-public go-github-com-carrlos0-spin
+  (package
+   (name "go-github-com-carrlos0-spin")
+   (version "1.1.0")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/caarlos0-graveyard/spin")
+                  (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1pnijds4145j8nsxvq8203r2sg2pbk7x8prkdg2ilghhrzqj6vyc"))))
+   (build-system go-build-system)
+   (arguments '(#:import-path "github.com/caarlos0/spin"))
+   (home-page "https://github.com/caarlos0-graveyard/spin")
+   (synopsis "A very simple spinner for cli golang apps")
+   (description "A very simple spinner for cli golang apps")
+   (license license:expat)))
+
 (define-public go-git-sr-ht-emersion-go-scfg
   (package
     (name "go-git-sr-ht-emersion-go-scfg")
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Fri, 21 Jul 2023 23:52:03 GMT) Full text and rfc822 format available.

Message #20 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 5/5] gnu: Add wally-cli
Date: Fri, 21 Jul 2023 18:50:59 -0500
* gnu/packages/golang.scm (wally-cli): New variable. Init at 2.0.1.
---
 gnu/packages/golang.scm | 45 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 495e32dd18..ef6ad0b561 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12206,6 +12206,51 @@ (define-public go-github-com-marcinbor85-gohex
       (description "A Go library for parsing Intel HEX files")
       (license license:expat))))
 
+(define-public wally-cli
+  (package
+   (name "wally-cli")
+   (version "2.0.1")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/zsa/wally-cli")
+                  (commit (string-append version "-linux"))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1iswh1z7llapjn116lyr5lvry7q93zfaasxvm36q5jx09hf91v1n"))))
+   (native-inputs
+    (list pkg-config
+          go-github-com-carrlos0-spin
+          go-github-com-google-gousb
+          go-github-com-marcinbor85-gohex
+          go-github-com-mattn-go-runewidth
+          go-golang-org-x-sys
+          go-github-com-cheggaaa-pb-v1))
+   (inputs (list libusb))
+   (build-system go-build-system)
+   (arguments
+    `(#:import-path "github.com/zsa/wally-cli"
+      ;; We don't need to install the source code for end-user applications.
+      #:install-source? #f
+      #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'fix-cheggaaa-pb-go-mod-require
+           ;; Some files that use this package use a strange package path that
+           ;; go-build-system does not like. So, we replace the imported
+           ;; package's old name with this new one, which does work.
+           (lambda* (#:key import-path #:allow-other-keys)
+             (substitute* (list (string-append "src/" import-path "/go.mod")
+                                (string-append "src/" import-path "/main.go"))
+               (("gopkg.in/cheggaaa/pb.v1")
+                "github.com/cheggaaa/pb/v1")))))))
+   (home-page "https://ergodox-ez.com/pages/wally-planck")
+   (synopsis "A tool to flash firmware to mechanical keyboards")
+   (description "Provides a command-line interface for the Wally GUI utility for
+flashing firmware to mechanical keyboards. Particularly for Ergodox, ZSA Moonlander,
+and Planck keyboards.")
+   (license license:expat)))
+
 (define-public go-github-com-gsterjov-go-libsecret
   (let ((commit "a6f4afe4910cad8688db3e0e9b9ac92ad22d54e1")
         (revision "0"))
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#64778; Package guix-patches. (Sat, 22 Jul 2023 00:08:01 GMT) Full text and rfc822 format available.

Message #23 received at 64778 <at> debbugs.gnu.org (full text, mbox):

From: Karl Hallsby <karl <at> hallsby.com>
To: 64778 <at> debbugs.gnu.org
Cc: Karl Hallsby <karl <at> hallsby.com>
Subject: [PATCH 1/5] gnu: Add go-github-com-google-gousb
Date: Fri, 21 Jul 2023 19:06:55 -0500
* 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 <at> librehacker.com>
 ;;; Copyright © 2023 Hilton Chain <hako <at> ultrarare.space>
 ;;; Copyright © 2023 Timo Wilken <guix <at> twilken.net>
+;;; Copyright © 2023 Raven Hallsby <karl <at> 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





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Fri, 29 Mar 2024 14:27:02 GMT) Full text and rfc822 format available.

Notification sent to Karl Hallsby <karl <at> hallsby.com>:
bug acknowledged by developer. (Fri, 29 Mar 2024 14:27:02 GMT) Full text and rfc822 format available.

Message #28 received at 64778-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 64778-done <at> debbugs.gnu.org
Subject: [PATCH 0/5] Add wally-cli 
Date: Fri, 29 Mar 2024 14:26:23 +0000
[Message part 1 (text/plain, inline)]

Closing as duplicate.

wally-cli was added from  <https://issues.guix.gnu.org/47769>.

Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Apr 2024 11:25:07 GMT) Full text and rfc822 format available.

This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.