[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v13 26/42] gnu: Add go-github-com-niemeyer-pretty.
From: |
( |
Subject: |
[bug#55903] [PATCH v13 26/42] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Fri, 21 Oct 2022 22:11:21 +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 11d0bc6b24..090db70e77 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10949,6 +10949,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 v13 32/42] gnu: Add go-github-com-emersion-go-msgauth., (continued)
- [bug#55903] [PATCH v13 32/42] gnu: Add go-github-com-emersion-go-msgauth., (, 2022/10/21
- [bug#55903] [PATCH v13 18/42] gnu: Add go-github-com-emersion-go-textwrapper., (, 2022/10/21
- [bug#55903] [PATCH v13 15/42] gnu: Add go-github-com-cention-sany-utf7., (, 2022/10/21
- [bug#55903] [PATCH v13 27/42] gnu: Add go-github-com-arran4-golang-ical., (, 2022/10/21
- [bug#55903] [PATCH v13 17/42] gnu: Add go-github-com-gatherstars-com-jwz., (, 2022/10/21
- [bug#55903] [PATCH v13 36/42] gnu: Add go-github-com-go-task-slim-sprig., (, 2022/10/21
- [bug#55903] [PATCH v13 35/42] gnu: Add go-github-com-nxadm-tail., (, 2022/10/21
- [bug#55903] [PATCH v13 30/42] gnu: Add go-github-com-emersion-go-maildir., (, 2022/10/21
- [bug#55903] [PATCH v13 22/42] gnu: Add go-github-com-emersion-go-imap-sortthread., (, 2022/10/21
- [bug#55903] [PATCH v13 39/42] gnu: Add go-github-com-emersion-go-mbox., (, 2022/10/21
- [bug#55903] [PATCH v13 26/42] gnu: Add go-github-com-niemeyer-pretty.,
( <=
- [bug#55903] [PATCH v13 37/42] gnu: Add go-github-com-onsi-ginkgo., (, 2022/10/21
- [bug#55903] [PATCH v13 31/42] gnu: Add go-github-com-emersion-go-milter., (, 2022/10/21
- [bug#55903] [PATCH v13 24/42] gnu: Add go-github-com-emersion-go-pgpmail., (, 2022/10/21
- [bug#55903] [PATCH v13 34/42] gnu: Add go-gopkg-in-tomb-v1., (, 2022/10/21
- [bug#55903] [PATCH v13 42/42] gnu: Add aerc., (, 2022/10/21
- [bug#55903] [PATCH v13 40/42] gnu: go-github-com-gdamore-tcell-v2: Update to 2.5.3., (, 2022/10/21
- [bug#55903] [PATCH v13 33/42] gnu: Add go-github-com-onsi-gomega., (, 2022/10/21
- [bug#55903] [PATCH v13 41/42] gnu: Add go-git-sr-ht-rockorager-tcell-term., (, 2022/10/21