[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH 33/41] gnu: Add go-github-com-niemeyer-pretty.
From: |
(unmatched-parenthesis |
Subject: |
[bug#55903] [PATCH 33/41] gnu: Add go-github-com-niemeyer-pretty. |
Date: |
Sat, 11 Jun 2022 20:16:45 +0100 |
* gnu/packages/golang.scm (go-github-com-niemeyer-pretty): New variable.
---
gnu/packages/golang.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 00b6945e10..61a7ee8edd 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -56,6 +56,7 @@ (define-module (gnu packages golang)
#:use-module (guix utils)
#:use-module ((guix build utils) #:select (alist-replace))
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix build-system gnu)
@@ -10566,3 +10567,36 @@ (define-public go-github-com-emersion-go-smtp
"Package smtp implements the Simple Mail Transfer Protocol as defined in
@url{https://rfc-editor.org/rfc/rfc5321.html,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
+ "Package pretty 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 26/41] gnu: Add go-github-com-protonmail-go-crypto-bitcurves., (continued)
- [bug#55903] [PATCH 26/41] gnu: Add go-github-com-protonmail-go-crypto-bitcurves., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 36/41] gnu: Add go-github-com-lithammer-fuzzysearch., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 38/41] gnu: Add go-github-com-emersion-go-maildir., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 37/41] gnu: Add go-github-com-google-shlex., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 37/41] gnu: Add go-github-com-google-shlex., Maxime Devos, 2022/06/11
- [bug#55903] [PATCH 41/41] gnu: Add aerc., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 33/41] gnu: Add go-github-com-niemeyer-pretty.,
(unmatched-parenthesis <=
[bug#55903] [PATCH 27/41] gnu: Add go-github-com-protonmail-go-crypto-brainpool., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 35/41] gnu: Add go-git-sr-ht--sircmpwn-getopt., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 39/41] gnu: Add go-github-com-emersion-go-milter., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 40/41] gnu: Add go-github-com-emersion-go-msgauth-authres., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 30/41] gnu: Add go-github-com-protonmail-go-crypto-ocb., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 31/41] gnu: Add go-github-com-emersion-go-pgpmail., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 32/41] gnu: Add go-github-com-emersion-go-smtp., (unmatched-parenthesis, 2022/06/11
[bug#55903] [PATCH 34/41] gnu: Add go-github-com-arran4-golang-ical., (unmatched-parenthesis, 2022/06/11
[bug#55903] Fwd: Re: [PATCHSET] Adding aerc, (, 2022/06/11
[bug#55903] [PATCHSET] Adding aerc, Maxime Devos, 2022/06/11