From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee563-0002Gx-8L for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee55z-00019P-4v for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee55z-00019D-0z for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ee55y-0007rJ-RR for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:02 -0500 Subject: [bug#30214] [PATCH 03/10] gnu: Add go-github.com-jessevdk-go-flags. Resent-Message-ID: From: Christopher Baines Date: Tue, 23 Jan 2018 20:21:55 +0000 Message-Id: <20180123202202.32140-3-mail@cbaines.net> In-Reply-To: <20180123202202.32140-1-mail@cbaines.net> References: <20180123202202.32140-1-mail@cbaines.net> 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: 30214@debbugs.gnu.org * gnu/packages/golang.scm (go-github.com-jessevdk-go-flags): New variable. --- gnu/packages/golang.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 202183ff2..f972e5058 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -446,3 +446,37 @@ interfaces in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.") (home-page "https://github.com/davidjpeacock/cli") (license license:expat)))) + +(define-public go-github.com-jessevdk-go-flags + (package + (name "go-github.com-jessevdk-go-flags") + (version "1.3.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/jessevdk/go-flags/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")))) + (sha256 + (base32 + "0dmvsxsq2s6jx17c8snpw8b2hixy5m03wp8qwvsjsjzavd5gkyg0")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/jessevdk" + #:import-path "github.com/jessevdk/go-flags" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'rename-archive + (lambda _ + (rename-file + ,(string-append "src/github.com/jessevdk/go-flags-" version) + "src/github.com/jessevdk/go-flags") + #t))))) + (synopsis "Go library for parsing command line arguments") + (description + "The @code{flags} package provides a command line option parser. The +functionality is similar to the go builtin @code{flag} package, but +@code{flags} provides more options and uses reflection to provide a succinct +way of specifying command line options.") + (home-page "https://github.com/jessevdk/go-flags") + (license license:bsd-3))) -- 2.16.0