diff options
Diffstat (limited to 'gnu/packages/flashing-tools.scm')
-rw-r--r-- | gnu/packages/flashing-tools.scm | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index 457f575c92..c054e46bd3 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -654,13 +654,24 @@ It can be used to upload images to I.MX SoC's using at least their boot ROM.") (arguments (list #:install-source? #f - #:import-path "github.com/zsa/wally-cli")) + #: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-gopkg-in-cheggaaa-pb-v1 + go-github-com-cheggaaa-pb pkg-config)) (home-page "https://ergodox-ez.com/pages/wally") (synopsis "Flashing tool for ZSA keyboards") |