[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v9 27/42] gnu: Add go-github-com-niemeyer-pretty.
From: |
( |
Subject: |
[bug#55903] [PATCH v9 27/42] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Fri, 9 Sep 2022 21:49:51 +0100 |
From: "(unmatched-parenthesis" <paren@disroot.org>
* gnu/packages/golang.scm (go-github-com-niemeyer-pretty): 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 c3fed8362e..94edf086e3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10710,3 +10710,36 @@ (define-public go-github-com-emersion-go-smtp
"The smtp package implements the Simple Mail Transfer Protocol as defined
by RFC 5321.")
(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
+ (list #:import-path "github.com/niemeyer/pretty"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'int-to-string-with-rune
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (substitute* "formatter.go"
+ (("s \\+= string\\(i\\)")
+ "s += string(rune(i))"))))))))
+ (propagated-inputs (list go-github-com-kr-text))
+ (home-page "https://github.com/niemeyer/pretty")
+ (synopsis "Pretty-print Go values")
+ (description
+ "The pretty package provides pretty-printing for Go values. This is
+useful during debugging, to avoid wrapping long output lines in the
+terminal.")
+ (license license:expat)))
--
2.37.3
- [bug#55903] [PATCH v9 25/42] gnu: Add go-github-com-emersion-go-pgpmail., (continued)
- [bug#55903] [PATCH v9 25/42] gnu: Add go-github-com-emersion-go-pgpmail., (, 2022/09/09
- [bug#55903] [PATCH v9 28/42] gnu: Add go-github-com-arran4-golang-ical., (, 2022/09/09
- [bug#55903] [PATCH v9 30/42] gnu: Add go-github-com-lithammer-fuzzysearch., (, 2022/09/09
- [bug#55903] [PATCH v9 31/42] gnu: Add go-github-com-google-shlex., (, 2022/09/09
- [bug#55903] [PATCH v9 32/42] gnu: Add go-github-com-emersion-go-maildir., (, 2022/09/09
- [bug#55903] [PATCH v9 22/42] gnu: Add go-github-com-emersion-go-imap., (, 2022/09/09
- [bug#55903] [PATCH v9 29/42] gnu: Add go-git-sr-ht--sircmpwn-getopt., (, 2022/09/09
- [bug#55903] [PATCH v9 36/42] gnu: Add go-gopkg-in-tomb-v1., (, 2022/09/09
- [bug#55903] [PATCH v9 40/42] gnu: Add go-github-com-syndtr-goleveldb-leveldb., (, 2022/09/09
- [bug#55903] [PATCH v9 41/42] gnu: Add go-github-com-emersion-go-mbox., (, 2022/09/09
- [bug#55903] [PATCH v9 27/42] gnu: Add go-github-com-niemeyer-pretty.,
( <=
- [bug#55903] [PATCH v9 34/42] gnu: Add go-github-com-emersion-go-msgauth., (, 2022/09/09
- [bug#55903] [PATCH v9 35/42] gnu: Add go-github-com-onsi-gomega., (, 2022/09/09
- [bug#55903] [PATCH v9 37/42] gnu: Add go-github-com-nxadm-tail., (, 2022/09/09
- [bug#55903] [PATCH v9 42/42] gnu: Add aerc., (, 2022/09/09
- [bug#55903] [PATCH v9 38/42] gnu: Add go-github-com-go-task-slim-sprig., (, 2022/09/09
- [bug#55903] [PATCH v9 33/42] gnu: Add go-github-com-emersion-go-milter., (, 2022/09/09
- [bug#55903] [PATCH v9 39/42] gnu: Add go-github-com-onsi-ginkgo., (, 2022/09/09
- [bug#55903] [PATCH v9 01/42] gnu: Add go-github-com-zenhack-go-notmuch., (, 2022/09/09