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 5/5] gnu: Add wally-cli
Date: Fri, 21 Jul 2023 18:50:59 -0500 [thread overview]
Message-ID: <41425a05d3dd3ea2e521ffe84037501a9bd1ad79.1689982943.git.karl@hallsby.com> (raw)
In-Reply-To: <cover.1689982943.git.karl@hallsby.com>
* 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
next prev parent reply other threads:[~2023-07-21 23:52 UTC|newest]
Thread overview: 7+ 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 ` [bug#64778] [PATCH 1/5] gnu: Add go-github-com-google-gousb Karl Hallsby via Guix-patches via
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 ` Karl Hallsby via Guix-patches via [this message]
2024-03-29 14:26 ` bug#64778: [PATCH 0/5] Add wally-cli Sharlatan Hellseher
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=41425a05d3dd3ea2e521ffe84037501a9bd1ad79.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).