From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42538) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFPrb-0004Vg-8I for guix-patches@gnu.org; Tue, 01 Oct 2019 17:39:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFPrZ-0001qj-DZ for guix-patches@gnu.org; Tue, 01 Oct 2019 17:39:18 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFPrY-0001qT-KD for guix-patches@gnu.org; Tue, 01 Oct 2019 17:39:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFPrY-0007JB-Gd for guix-patches@gnu.org; Tue, 01 Oct 2019 17:39:16 -0400 Subject: [bug#37444] [PATCH v4 21/24] added go package go-git-sr-ht-sircmpwn-tcell Resent-Message-ID: From: Martin Becze Date: Tue, 1 Oct 2019 17:37:23 -0400 Message-Id: <20191001213726.21676-21-mjbecze@riseup.net> In-Reply-To: <20191001213726.21676-1-mjbecze@riseup.net> References: <20191001213726.21676-1-mjbecze@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37444@debbugs.gnu.org Cc: Martin Becze * gnu/packages/golang.scm (go-git-sr-ht-sircmpwn-tcell): added package --- gnu/packages/golang.scm | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b925f5df95..066ea4ee6f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4213,3 +4213,49 @@ quoting, commenting, and escaping.") (synopsis "A Go package for using unix pseudo-terminals") (description "Pty is a Go package for using unix pseudo-terminals.") (license license:expat)))) + +(define-public go-git-sr-ht-sircmpwn-tcell + (let ((commit "3fdb6bc01a5035fe7cd57b9b0b56166a44db8620") + (version "0.0.0")) + (package + (name "go-git-sr-ht-sircmpwn-tcell") + (version (git-version version "0" commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/tcell") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1g7vx0qzwp6wsp47l2rabmkrxp7x3z8s94gjf6722z7sfb8xybas")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/gdamore/tcell" + #:unpack-path "github.com/gdamore/tcell" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'make-files-writable + (lambda* (#:key outputs #:allow-other-keys) + ;; Make sure .gz files are writable so that the + ;; 'reset-gzip-timestamps' phase can do its work. + (let ((out (assoc-ref outputs "out"))) + (for-each make-file-writable + (find-files out "\\.gz$")) + #t)))))) + (propagated-inputs + `(("go-golang-org-colorful" ,go-golang-org-colorful) + ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding))) + (inputs + `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth) + ("go-golang-org-x-text-encoding" ,go-golang-org-x-text-encoding) + ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform) + ("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) + (home-page "https://github.com/gdamore/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 also favors portability, and includes support for all POSIX +systems.") + (license license:expat)))) -- 2.23.0