guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/05: gnu: Add go-github-com-niemeyer-pretty.


From: guix-commits
Subject: 02/05: gnu: Add go-github-com-niemeyer-pretty.
Date: Sun, 6 Mar 2022 05:27:31 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 18b0527765301a3015afb9ba1209bd10f56426cb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Feb 22 16:00:21 2022 +0200

    gnu: Add go-github-com-niemeyer-pretty.
    
    * gnu/packages/golang.scm (go-github-com-niemeyer-pretty): New variable.
---
 gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e1d9d1fcde..b59550e0ad 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5511,6 +5511,35 @@ format in Go.")
     (home-page "https://github.com/kr/pretty";)
     (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"))
+        (modules '((guix build utils)))
+        (snippet
+         '(begin
+            ;; https://github.com/kr/pretty/pull/66
+            (substitute* "formatter.go"
+              (("string\\(i\\)") "string(rune(i))"))))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/niemeyer/pretty"))
+    (propagated-inputs
+     (list go-github-com-kr-text))
+    (home-page "https://github.com/niemeyer/pretty";)
+    (synopsis "Pretty printer for Go values")
+    (description "This package provides a pretty printer for Go values.")
+    (license license:expat)))
+
 (define-public go-github-com-kylelemons-godebug
   (package
     (name "go-github-com-kylelemons-godebug")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]