summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-10-15 13:51:37 +0200
committerAndreas Enge <andreas@enge.fr>2025-10-15 13:55:34 +0200
commitadde76d065a053a0ef7cb529edccc1f7f0467b35 (patch)
treedf3d128b33d1c4de81ead5e57873da2d6ab624bf /gnu/packages
parentc7ed9b24a1ffd8922f9f0f02e6a97659f97c9efb (diff)
Revert "gnu: Remove wally-cli."
This reverts commit cc6b41f168074cda034a988fffa3c447b3abea26. The software still compiles, works and has users. Change-Id: I986f67c0e30110dcd8cc0166abe9bb605cb5920f
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/flashing-tools.scm48
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index 87d48843d5f..f591e57f34b 100644
--- a/gnu/packages/flashing-tools.scm
+++ b/gnu/packages/flashing-tools.scm
@@ -760,6 +760,54 @@ formats, and can perform many different manipulations.")
It can be used to upload images to I.MX SoC's using at least their boot ROM.")
(license license:bsd-3)))
+;; The upstream repository has been archived on 2024-08-21,
+;; the replacement Keymapp does not seem to be free software.
+;; Keep it as long as it builds and works and no replacement is in sight.
+(define-public wally-cli
+ (let ((commit "b0fafe52cc7fb9d55f2b968d4548c99917c7325c")
+ (revision "0"))
+ (package
+ (name "wally-cli")
+ (version (git-version "2.0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/zsa/wally-cli")
+ (commit commit)))
+ (sha256
+ (base32 "09phq2g51x7rlalzb87aqf48p3j4s7s5jdf5vdf48l9805hi2yha"))
+ (file-name (git-file-name name version))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "github.com/zsa/wally-cli"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Upstream Golang module name was changed from
+ ;; <gopkg.in/cheggaaa/pb.v1> to <github.com/cheggaaa/pb>, adjust
+ ;; references to it accordingly. Remove it in the new release of
+ ;; the package.
+ (add-after 'unpack 'fix-module-name
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (substitute* "main.go"
+ (("gopkg.in/cheggaaa/pb.v1") "github.com/cheggaaa/pb"))))))))
+ (native-inputs
+ (list go-github-com-briandowns-spinner
+ go-github-com-google-gousb
+ go-github-com-logrusorgru-aurora
+ go-github-com-marcinbor85-gohex
+ go-github-com-cheggaaa-pb
+ pkg-config))
+ (home-page "https://ergodox-ez.com/pages/wally")
+ (synopsis "Flashing tool for ZSA keyboards")
+ (description
+ "This tool is for flashing custom layouts to
+@url{https://ergodox-ez.com/,ZSA keyboards}.")
+ (license license:expat))))
+
(define-public wlink
(package
(name "wlink")