[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v11 26/41] gnu: Add go-github-com-niemeyer-pretty.
From: |
( |
Subject: |
[bug#55903] [PATCH v11 26/41] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Mon, 26 Sep 2022 17:55:37 +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 984f88260d..8e9bf10976 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10639,6 +10639,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.37.3
- [bug#55903] [PATCH v11 10/41] gnu: Add go-github-com-rivo-tview., (continued)
- [bug#55903] [PATCH v11 10/41] gnu: Add go-github-com-rivo-tview., (, 2022/09/26
- [bug#55903] [PATCH v11 07/41] gnu: Add go-github-com-kyoh86-xdg., (, 2022/09/26
- [bug#55903] [PATCH v11 19/41] gnu: Add go-github-com-emersion-go-message., (, 2022/09/26
- [bug#55903] [PATCH v11 14/41] gnu: Add go-github-com-go-test-deep., (, 2022/09/26
- [bug#55903] [PATCH v11 22/41] gnu: Add go-github-com-emersion-go-imap-sortthread., (, 2022/09/26
- [bug#55903] [PATCH v11 23/41] gnu: Add go-github-com-protonmail-go-crypto., (, 2022/09/26
- [bug#55903] [PATCH v11 02/41] gnu: Add go-github-com-creack-pty., (, 2022/09/26
- [bug#55903] [PATCH v11 03/41] gnu: Add go-google-golang-org-protobuf., (, 2022/09/26
- [bug#55903] [PATCH v11 08/41] gnu: Add go-github-com-go-ini-ini., (, 2022/09/26
- [bug#55903] [PATCH v11 13/41] gnu: Add go-github-com-jaytaylor-html2text., (, 2022/09/26
- [bug#55903] [PATCH v11 26/41] gnu: Add go-github-com-niemeyer-pretty.,
( <=
- [bug#55903] [PATCH v11 21/41] gnu: go-github-com-emersion-go-imap: Update to 1.2.1., (, 2022/09/26
- [bug#55903] [PATCH v11 34/41] gnu: Add go-github-com-onsi-gomega., (, 2022/09/26
- [bug#55903] [PATCH v11 28/41] gnu: Add go-git-sr-ht--sircmpwn-getopt., (, 2022/09/26
- [bug#55903] [PATCH v11 35/41] gnu: Add go-gopkg-in-tomb-v1., (, 2022/09/26
- [bug#55903] [PATCH v11 36/41] gnu: Add go-github-com-nxadm-tail., (, 2022/09/26
- [bug#55903] [PATCH v11 37/41] gnu: Add go-github-com-go-task-slim-sprig., (, 2022/09/26
- [bug#55903] [PATCH v11 29/41] gnu: Add go-github-com-lithammer-fuzzysearch., (, 2022/09/26
- [bug#55903] [PATCH v11 33/41] gnu: Add go-github-com-emersion-go-msgauth., (, 2022/09/26
- [bug#55903] [PATCH v11 30/41] gnu: Add go-github-com-google-shlex., (, 2022/09/26
- [bug#55903] [PATCH v11 40/41] gnu: Add go-github-com-emersion-go-mbox., (, 2022/09/26