# -rw-r--r-- 2.3 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
;; this fails in 'install
(define-public go-github-com-delthas-tcell
  (package
    (inherit go-github-com-gdamore-tcell-v2)
    (name "go-github-com-delthas-tcell")
    (version "v2.4.1-0.20220223131437-2362f49a2b6c")
    (source (origin
             (method git-fetch)
             (uri (git-reference
                   (url "https://github.com/delthas/tcell")
                   (commit (go-version->git-ref version))))
             (file-name (git-file-name name version))
             (sha256
              (base32
               "04mai0gicllhjqv7p0i29cdf9myzl8q5h672bdhmid7lv3x1k32f"))))
    (arguments
     (list #:import-path "github.com/gdamore/tcell/v2"))
    (propagated-inputs
     (list go-github-com-gdamore-encoding
           go-github-com-lucasb-eyer-go-colorful
           go-github-com-mattn-go-runewidth
           go-golang-org-x-sys
           go-golang-org-x-term
           go-golang-org-x-text))
    (home-page "https://github.com/delthas/tcell")))

;; but this works
(define-public go-github-com-delthas-tcell
  (let ((commit "8fc0c2be8f7d03abf14267e593bd2d104d4538b6")
        (revision "0"))
    (package
      (name "go-github-com-delthas-tcell")
      (version "v2.4.1-0.20220223131437-2362f49a2b6c")
      (source
        (origin
          (method git-fetch)
          (uri (git-reference
                 (url "https://github.com/delthas/tcell")
                 (commit (go-version->git-ref version))))
          (file-name (git-file-name name version))
          (sha256
            (base32 "04mai0gicllhjqv7p0i29cdf9myzl8q5h672bdhmid7lv3x1k32f"))))
      (build-system go-build-system)
      (arguments
        '(#:import-path "github.com/gdamore/tcell/v2"))
      (propagated-inputs
        (list go-github-com-gdamore-encoding
              go-github-com-lucasb-eyer-go-colorful
              go-github-com-mattn-go-runewidth
              go-golang-org-x-sys
              go-golang-org-x-term
              go-golang-org-x-text))
      (home-page "https://github.com/delthas/tcell")
      (synopsis "Provide a cell-based view for text terminals")
      (description "This package includes a full parser and expander for terminfo
capability strings to avoid hard-coding escape strings for formatting.  It favors
portability, and includes support for all POSIX systems.")
      (license license:asl2.0))))