From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWQpx-0007u3-87 for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWQpt-0008Qv-Ls for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWQpt-0008Qn-GL for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fWQpt-0008T3-A9 for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:05 -0400 Subject: [bug#31939] [PATCH 10/13] gnu: Add go-github-com-michiwend-golang-pretty. Resent-Message-ID: From: Pierre Neidhardt Date: Fri, 22 Jun 2018 20:30:28 +0200 Message-Id: <20180622183031.3044-9-ambrevar@gmail.com> In-Reply-To: <20180622183031.3044-1-ambrevar@gmail.com> References: <20180622183031.3044-1-ambrevar@gmail.com> 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: 31939@debbugs.gnu.org * gnu/packages/golang.scm (go-github-com-michiwend-golang-pretty): 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 c0973e838..d0f3ab9df 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2082,3 +2082,37 @@ be performed.") (description "Package @code{text} provides manipulation Go functions for paragraphs of text.") (license license:bsd-style)))) + +(define-public go-github-com-michiwend-golang-pretty + (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4") + (revision "0")) + (package + (name "go-github-com-michiwend-golang-pretty") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/michiwend/golang-pretty") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4")))) + (build-system go-build-system) + (native-inputs + `(("go-github-com-kr-text" ,go-github-com-kr-text))) + (arguments + `(#:tests? #f ; Upstream tests seem to be broken. + #:import-path "github.com/michiwend/golang-pretty")) + (home-page "https://github.com/michiwend/golang-pretty") + (synopsis "Pretty printing for Go values") + (description "Package @code{pretty} provides pretty-printing for Go +values. This is useful during debugging, to avoid wrapping long output lines +in the terminal. + +It provides a function, Formatter, that can be used with any function that +accepts a format string. It also provides convenience wrappers for functions +in packages fmt and log.") + (license license:bsd-style)))) -- 2.17.1