Subject: [PATCH 1/2] gnu: go-github-com-delthas-tcell-v2: New variable.

From: Mazin AlHaddad <[email-masked]>
Date: Sat, 2 Nov 2024 10:40:28 +0300

From: Mazin Alhaddad <[email-masked]>

* gnu/packages/golang.scm (go-github-com-delthas-tcell-v2): New variable.

Change-Id: Ifc15544e2e78215a4f6cdc36cd316dd10fa0071e
---
 gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 00dde61f2c..bdfee798bf 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5135,6 +5135,34 @@ (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-delthas-tcell-v2
+  (package
+    (inherit go-github-com-gdamore-tcell)
+    (name "go-github-com-delthas-tcell")
+    (version "2.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/delthas/tcell")
+             (commit "837a7d7")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j"))))
+    (arguments
+     (list
+      #:import-path "github.com/gdamore/tcell/v2"
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'reset-gzip-timestamps 'make-files-writable
+                     (lambda _
+                       ;; Make sure .gz files are writable so that the
+                       ;; 'reset-gzip-timestamps' phase can do its work.
+                       (for-each make-file-writable
+                                 (find-files #$output "\\.gz$")))))))
+    (propagated-inputs (modify-inputs (package-inputs
+                                       go-github-com-gdamore-tcell)
+                         (prepend go-golang-org-x-term go-golang-org-x-sys)))))
+
 (define-public go-git-sr-ht-rockorager-tcell-term
   (package
     (name "go-git-sr-ht-rockorager-tcell-term")
-- 
2.46.0