From patchwork Mon Apr 19 15:23:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 28666 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 2A52527BC79; Mon, 19 Apr 2021 16:24:27 +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 E326727BC6C for ; Mon, 19 Apr 2021 16:24:26 +0100 (BST) Received: from localhost ([::1]:51366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVlB-0006mr-VO for patchwork@mira.cbaines.net; Mon, 19 Apr 2021 11:24:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYVkq-0006MX-JW for guix-patches@gnu.org; Mon, 19 Apr 2021 11:24:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYVkq-00050j-AV for guix-patches@gnu.org; Mon, 19 Apr 2021 11:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYVkq-00012s-5s for guix-patches@gnu.org; Mon, 19 Apr 2021 11:24:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] [PATCH v3 16/25] gnu: Add go-github-com-itchyny-go-flags. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Apr 2021 15:24:04 +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.16188458213910 (code B ref 47539); Mon, 19 Apr 2021 15:24:04 +0000 Received: (at 47539) by debbugs.gnu.org; 19 Apr 2021 15:23:41 +0000 Received: from localhost ([127.0.0.1]:51694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVkT-00010z-3E for submit@debbugs.gnu.org; Mon, 19 Apr 2021 11:23:41 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:57494 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVkJ-000108-UG for 47539@debbugs.gnu.org; Mon, 19 Apr 2021 11:23:32 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1618845806; bh=9t7uaDN6AdUPXGyiMHe722GP3jpgjKp0DhbklQGHaI0=; h=From:To:Subject:In-Reply-To:References:Date; b=ZXWwMnQFyy+djVQOf0VyQecwFjF26TfyNS+l9GrhQwiEl9eYxd9QcQVmCnGmizpwo YGBwq5IMSzd8k0+gpbe9wNyCtS3HzRgeffJtxHsgFp2Qd8bHOk0YRQRKNTyQj9B8Xb ppTex0Ay3BiMYCGY5N//dsmXFI8MrOvwbI1RxVd8= In-Reply-To: References: Message-Id: <7306479767ccc3c9651c33952b6ae3280eb8a1dd.1618845646.git.public@yoctocell.xyz> Date: Mon, 19 Apr 2021 17:23:26 +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-itchyny-go-flags): New variable. --- gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 31f7ead170..720b9111bc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7460,3 +7460,36 @@ shell-style quoting, commenting, and escaping.") pretty on your terminal.") (license license:expat))) +(define-public go-github-com-itchyny-go-flags + (package + (name "go-github-com-itchyny-go-flags") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/itchyny/go-flags.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qfh7gn95aldlsigk72jl87npmwvx15kb7df1100d6j0nbakd8b5")))) + (build-system go-build-system) + (arguments + '(#:import-path + "github.com/itchyny/go-flags" + ;; Unable to find man page + #:tests? #f)) + (native-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/itchyny/go-flags") + (synopsis "Go library for parsing command line arguments") + (description "This library provides similar functionality to the builtin +flag library of Go, but provides much more functionality. + +Package flags provides an extensive command line option parser. The flags +package is similar in functionality to the go builtin flag package but +provides more options and uses reflection to provide a convenient and succinct +way of specifying command line options.") + (license license:bsd-3))) +