[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v12 26/40] gnu: Add go-github-com-niemeyer-pretty.
From: |
( |
Subject: |
[bug#55903] [PATCH v12 26/40] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Mon, 10 Oct 2022 08:17:40 +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 659374b271..f8d1e69ce6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10801,6 +10801,39 @@ (define-public go-github-com-go-test-deep
when comparing complex types like structures and maps.")
(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)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.38.0
- [bug#55903] [PATCH v12 19/40] gnu: Add go-github-com-emersion-go-message., (continued)
- [bug#55903] [PATCH v12 19/40] gnu: Add go-github-com-emersion-go-message., (, 2022/10/10
- [bug#55903] [PATCH v12 28/40] gnu: Add go-git-sr-ht--sircmpwn-getopt., (, 2022/10/10
- [bug#55903] [PATCH v12 35/40] gnu: Add go-github-com-nxadm-tail., (, 2022/10/10
- [bug#55903] [PATCH v12 07/40] gnu: Add go-github-com-kyoh86-xdg., (, 2022/10/10
- [bug#55903] [PATCH v12 04/40] gnu: Add go-github-com-xo-terminfo., (, 2022/10/10
- [bug#55903] [PATCH v12 08/40] gnu: Add go-github-com-go-ini-ini., (, 2022/10/10
- [bug#55903] [PATCH v12 10/40] gnu: Add go-github-com-rivo-tview., (, 2022/10/10
- [bug#55903] [PATCH v12 12/40] gnu: Add go-github-com-gogs-chardet., (, 2022/10/10
- [bug#55903] [PATCH v12 09/40] gnu: go-golang-org-colorful: Rename to go-github-com-lucasb-eyer-go-colorful., (, 2022/10/10
- [bug#55903] [PATCH v12 13/40] gnu: Add go-github-com-jaytaylor-html2text., (, 2022/10/10
- [bug#55903] [PATCH v12 26/40] gnu: Add go-github-com-niemeyer-pretty.,
( <=
- [bug#55903] [PATCH v12 30/40] gnu: Add go-github-com-emersion-go-maildir., (, 2022/10/10
- [bug#55903] [PATCH v12 17/40] gnu: Add go-github-com-gatherstars-com-jwz., (, 2022/10/10
- [bug#55903] [PATCH v12 21/40] gnu: go-github-com-emersion-go-imap: Update to 1.2.1., (, 2022/10/10
- [bug#55903] [PATCH v12 15/40] gnu: Add go-github-com-cention-sany-utf7., (, 2022/10/10
- [bug#55903] [PATCH v12 33/40] gnu: Add go-github-com-onsi-gomega., (, 2022/10/10
- [bug#55903] [PATCH v12 34/40] gnu: Add go-gopkg-in-tomb-v1., (, 2022/10/10
- [bug#55903] [PATCH v12 39/40] gnu: Add go-github-com-emersion-go-mbox., (, 2022/10/10
- [bug#55903] [PATCH v12 14/40] gnu: Add go-github-com-go-test-deep., (, 2022/10/10
- [bug#55903] [PATCH v12 31/40] gnu: Add go-github-com-emersion-go-milter., (, 2022/10/10
- [bug#55903] [PATCH v12 22/40] gnu: Add go-github-com-emersion-go-imap-sortthread., (, 2022/10/10