[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v2 27/35] gnu: Add go-github-com-niemeyer-pretty.
From: |
( |
Subject: |
[bug#55903] [PATCH v2 27/35] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Mon, 13 Jun 2022 07:56:26 +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 870f0f17b9..b7cc211333 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10542,3 +10542,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.36.1
- [bug#55903] [PATCH v2 11/35] gnu: Add go-github-com-rivo-tview., (continued)
- [bug#55903] [PATCH v2 11/35] gnu: Add go-github-com-rivo-tview., (, 2022/06/13
- [bug#55903] [PATCH v2 07/35] gnu: Add go-github-com-kyoh86-xdg., (, 2022/06/13
- [bug#55903] [PATCH v2 10/35] gnu: Add go-github-com-rivo-uniseg., (, 2022/06/13
- [bug#55903] [PATCH v2 09/35] gnu: Add go-github-com-lucasb-eyer-go-colorful., (, 2022/06/13
- [bug#55903] [PATCH v2 08/35] gnu: Add go-github-com-go-ini-ini., (, 2022/06/13
- [bug#55903] [PATCH v2 05/35] gnu: Add go-github-com-riywo-loginshell., (, 2022/06/13
- [bug#55903] [PATCH v2 12/35] gnu: Add go-github-com-ssor-bom., (, 2022/06/13
- [bug#55903] [PATCH v2 21/35] gnu: Add go-github-com-emersion-go-sasl., (, 2022/06/13
- [bug#55903] [PATCH v2 17/35] gnu: Add go-github-com-jhillyerd-enmime., (, 2022/06/13
- [bug#55903] [PATCH v2 28/35] gnu: Add go-github-com-arran4-golang-ical., (, 2022/06/13
- [bug#55903] [PATCH v2 27/35] gnu: Add go-github-com-niemeyer-pretty.,
( <=
- [bug#55903] [PATCH v2 30/35] gnu: Add go-github-com-lithammer-fuzzysearch., (, 2022/06/13
- [bug#55903] [PATCH v2 29/35] gnu: Add go-git-sr-ht--sircmpwn-getopt., (, 2022/06/13
- [bug#55903] [PATCH v2 32/35] gnu: Add go-github-com-emersion-go-maildir., (, 2022/06/13
- [bug#55903] [PATCH v2 19/35] gnu: Add go-github-com-emersion-go-textwrapper., (, 2022/06/13
- [bug#55903] [PATCH v2 22/35] gnu: Add go-github-com-emersion-go-imap., (, 2022/06/13
- [bug#55903] [PATCH v2 24/35] gnu: Add go-github-com-protonmail-go-crypto., (, 2022/06/13
- [bug#55903] [PATCH v2 26/35] gnu: Add go-github-com-emersion-go-smtp., (, 2022/06/13
- [bug#55903] [PATCH v2 33/35] gnu: Add go-github-com-emersion-go-milter., (, 2022/06/13
- [bug#55903] [PATCH v2 25/35] gnu: Add go-github-com-emersion-go-pgpmail., (, 2022/06/13
- [bug#55903] [PATCH v2 15/35] gnu: Add go-github-com-go-test-deep., (, 2022/06/13