gnu: lf: Fix build.

* gnu/packages/golang.scm (go-github-com-gdamore-tcell-v2-2.3): New public variable.
* gnu/packages/disk.scm (lf)[native-inputs]: Use it instead of
go-github-com-gdamore-tcell-v2.

Reported by Tyler Wolf <https://issues.guix.gnu.org/59663>.
This commit is contained in:
Tobias Geerinckx-Rice 2022-11-27 01:00:00 +01:00
parent f33ab4713b
commit b0801110cc
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79
2 changed files with 17 additions and 1 deletions

View file

@ -1142,6 +1142,7 @@ (define-public rmlint
(define-public lf
(package
(name "lf")
;; When updating, remove go-github-com-gdamore-tcell-v2-2.3 from golang.scm.
(version "27")
(source (origin
(method git-fetch)
@ -1155,7 +1156,7 @@ (define-public lf
(build-system go-build-system)
(native-inputs
(list go-github.com-mattn-go-runewidth go-golang-org-x-term
go-gopkg-in-djherbis-times-v1 go-github-com-gdamore-tcell-v2))
go-gopkg-in-djherbis-times-v1 go-github-com-gdamore-tcell-v2-2.3))
(arguments
`(#:import-path "github.com/gokcehan/lf"))
(home-page "https://github.com/gokcehan/lf")

View file

@ -6259,6 +6259,21 @@ (define-public go-github-com-gdamore-tcell-v2
(modify-inputs (package-inputs go-github-com-gdamore-tcell)
(prepend go-golang-org-x-term go-golang-org-x-sys)))))
(define-public go-github-com-gdamore-tcell-v2-2.3
(package
(inherit go-github-com-gdamore-tcell-v2)
(name "go-github-com-gdamore-tcell")
(version "2.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gdamore/tcell")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ypbl5080q9sd3irad8mv7zlg4242i8pmg5xyhbyq95kymwibaid"))))))
(define-public go-git-sr-ht-rockorager-tcell-term
(package
(name "go-git-sr-ht-rockorager-tcell-term")