From patchwork Thu Apr 1 18:31:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 28288 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 371B527BC75; Thu, 1 Apr 2021 19:36:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CF3D627BC74 for ; Thu, 1 Apr 2021 19:36:44 +0100 (BST) Received: from localhost ([::1]:39920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lS2BQ-0001Yd-1P for patchwork@mira.cbaines.net; Thu, 01 Apr 2021 14:36:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lS26u-00060T-9I for guix-patches@gnu.org; Thu, 01 Apr 2021 14:32:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lS26t-0004d8-DE for guix-patches@gnu.org; Thu, 01 Apr 2021 14:32:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lS26t-0008DZ-An for guix-patches@gnu.org; Thu, 01 Apr 2021 14:32:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] [PATCH v2 20/26] gnu: Add go-github-com-mattn-go-runewidth. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Apr 2021 18:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47539@debbugs.gnu.org Received: via spool by 47539-submit@debbugs.gnu.org id=B47539.161730187931219 (code B ref 47539); Thu, 01 Apr 2021 18:32:03 +0000 Received: (at 47539) by debbugs.gnu.org; 1 Apr 2021 18:31:19 +0000 Received: from localhost ([127.0.0.1]:58556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS26A-00087M-T5 for submit@debbugs.gnu.org; Thu, 01 Apr 2021 14:31:19 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:39128 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS269-00086m-Gr for 47539@debbugs.gnu.org; Thu, 01 Apr 2021 14:31:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1617301872; bh=I76BScDza2Zv6wicHLh45umEEpsFmy6Nuqfgtqs7UHs=; h=From:To:Subject:In-Reply-To:References:Date; b=RzG05xu7Q5tdKBuSAdbt5aOWFmQRmsOQs1R5OPNIOeAgntlyhuP0U13m7hyymbo/i f1/GHZvlNE+NpVexnhRvQZUmMJfL7Y9yQj2ac20ulxLw8XCYVQfnnPOYdQhgOkzEiV kRXj8/sw+JFZ4Wz7hHHDfMKnAIV4TD3pvhrxkRnQ= In-Reply-To: References: Message-Id: Date: Thu, 01 Apr 2021 20:31:11 +0200 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-mattn-go-runewidth): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 35187a9bb8..c86a78cc98 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7581,3 +7581,29 @@ command written in Go language. It is also embedable as a library to other Go projects.") (license license:expat))) +(define-public go-github-com-mattn-go-runewidth + (package + (name "go-github-com-mattn-go-runewidth") + (version "0.0.10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mattn/go-runewidth.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jh9552ppqvkdfni7x623n0x5mbiaqqhjhmr0zkh28x56k4ysii4")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/mattn/go-runewidth")) + (native-inputs + `(("go-github-com-rivo-uniseg" + ,go-github-com-rivo-uniseg))) + (home-page "https://github.com/mattn/go-runewidth") + (synopsis "Functions to get fixed width of the character or string") + (description "This package provides functions to get fixed width of the +character or string.") + (license license:expat))) +