From: Efraim Flashner <efraim@flashner.co.il>
To: 54123@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#54123] [PATCH 2/5] gnu: Add go-github-com-niemeyer-pretty.
Date: Wed, 23 Feb 2022 12:29:11 +0200 [thread overview]
Message-ID: <98ccc56c6c203acd07dcb8ec0a81c0a39db622b9.1645611835.git.efraim@flashner.co.il> (raw)
In-Reply-To: <cover.1645611835.git.efraim@flashner.co.il>
* gnu/packages/golang.scm (go-github-com-niemeyer-pretty): New variable.
---
gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e1d9d1fcde..95ef87385a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5511,6 +5511,36 @@ (define-public go-github-com-kr-pretty
(home-page "https://github.com/kr/pretty")
(license license:expat)))
+(define-public go-github-com-niemeyer-pretty
+ (package
+ (name "go-github-com-niemeyer-pretty")
+ (version "0.0.0-20200227124842-a10e7caefd8e")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/niemeyer/pretty")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jmazh4xzaa3v6g46hz60q2z7nmqs9l9cxdzmmscn3kbcs2znq4v"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/niemeyer/pretty"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-source
+ (lambda _
+ ;; https://github.com/kr/pretty/pull/66
+ (substitute* "src/github.com/niemeyer/pretty/formatter.go"
+ (("string\\(i\\)") "string(rune(i))")))))))
+ (propagated-inputs
+ (list go-github-com-kr-text))
+ (home-page "https://github.com/niemeyer/pretty")
+ (synopsis "Pretty printer for Go values")
+ (description "This package provides a pretty printer for Go values.")
+ (license license:expat)))
+
(define-public go-github-com-kylelemons-godebug
(package
(name "go-github-com-kylelemons-godebug")
--
2.34.0
next prev parent reply other threads:[~2022-02-23 11:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 10:24 [bug#54123] [PATCH 0/5] some golang packages Efraim Flashner
2022-02-23 10:29 ` [bug#54123] [PATCH 1/5] gnu: Add go-github-com-xdg-go-stringprep Efraim Flashner
2022-03-06 10:26 ` bug#54123: " Efraim Flashner
2022-02-23 10:29 ` Efraim Flashner [this message]
2022-02-23 12:39 ` [bug#54123] [PATCH 2/5] gnu: Add go-github-com-niemeyer-pretty Maxime Devos
2022-02-23 10:29 ` [bug#54123] [PATCH 3/5] gnu: Add go-github-com-docker-go-units Efraim Flashner
2022-02-23 10:29 ` [bug#54123] [PATCH 4/5] gnu: Add go-github-com-xdg-go-pbkdf2 Efraim Flashner
2022-02-23 10:29 ` [bug#54123] [PATCH 5/5] gnu: Add go-github-com-xdg-go-scram Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98ccc56c6c203acd07dcb8ec0a81c0a39db622b9.1645611835.git.efraim@flashner.co.il \
--to=efraim@flashner.co.il \
--cc=54123@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.