From patchwork Thu Sep 26 15:21:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 15469 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B0C8B1742E; Thu, 26 Sep 2019 16:35:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6CE9A1741F for ; Thu, 26 Sep 2019 16:35:37 +0100 (BST) Received: from localhost ([::1]:39476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDVns-0004b4-UH for patchwork@mira.cbaines.net; Thu, 26 Sep 2019 11:35:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54044) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDVbs-000876-Pd for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDVbr-0006at-FX for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35547) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDVbr-0006am-D4 for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDVbr-0004TR-7y for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37444] [PATCH v3 20/23] added go package go-git-sr-ht-sircmpwn-tcell Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2019 15:23:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37444 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37444@debbugs.gnu.org Received: via spool by 37444-submit@debbugs.gnu.org id=B37444.156951138217048 (code B ref 37444); Thu, 26 Sep 2019 15:23:11 +0000 Received: (at 37444) by debbugs.gnu.org; 26 Sep 2019 15:23:02 +0000 Received: from localhost ([127.0.0.1]:44345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDVbh-0004Qn-W1 for submit@debbugs.gnu.org; Thu, 26 Sep 2019 11:23:02 -0400 Received: from mx1.riseup.net ([198.252.153.129]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDVbG-0004PK-Ld for 37444@debbugs.gnu.org; Thu, 26 Sep 2019 11:22:35 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 46fJZf1xD7zDvwh; Thu, 26 Sep 2019 08:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1569511354; bh=7Jua/fakMfVhOT2Q2Wf80FlvwN+0PqFoTYtgWzS6mgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qa4HCxK5zmD2JwsCPfAtTdYAHy3VciovNxQULUA8oGhCXJE6AP8qt4aM6Zu6Ns+/z 9AW3X6kLxtO1+IxR6GeeOR6Osv3TktIZ23XCZclTQQoDcpVao0cyVqmDtvv26Flufe DDlxAq+u1cfZqyrxk6o7m5Zq5sW1rSjOUCOx0Wxo= X-Riseup-User-ID: B6986D56FD4BE0C689756058DC8136CB9015531189536AD40DF678082FA16BFD Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 46fJZd1LySzJxbr; Thu, 26 Sep 2019 08:22:33 -0700 (PDT) From: Martin Becze Date: Thu, 26 Sep 2019 11:21:15 -0400 Message-Id: <20190926152118.8073-20-mjbecze@riseup.net> In-Reply-To: <20190926152118.8073-1-mjbecze@riseup.net> References: <87blv7pfdi.fsf@gnu.org> <20190926152118.8073-1-mjbecze@riseup.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Becze Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- 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))))