guix-commits
[Top][All Lists]
Advanced

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

59/60: gnu: Add gopkg-in-errgo-fmt-errors.


From: guix-commits
Subject: 59/60: gnu: Add gopkg-in-errgo-fmt-errors.
Date: Sun, 9 Aug 2020 10:25:08 -0400 (EDT)

wigust pushed a commit to branch master
in repository guix.

commit 920c113f22c32fe8f5cebcfb04b6ca771c5b20f7
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sun Aug 9 16:55:44 2020 +0300

    gnu: Add gopkg-in-errgo-fmt-errors.
    
    * gnu/packages/golang.scm (gopkg-in-errgo-fmt-errors): New variable.
---
 gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a0e6851..ea7a6f1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5602,3 +5602,31 @@ Included are the following:
 @item txtar: simple text-based file archives for testing.
 @end itemize\n")
     (license license:bsd-3)))
+
+(define-public gopkg-in-errgo-fmt-errors
+  (package
+    (name "gopkg-in-errgo-fmt-errors")
+    (version "2.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-errgo/errgo";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "gopkg.in/errgo.v2/fmt/errors"
+       #:tests? #f
+       ;; Source-only package
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'build))))
+    (home-page "https://godoc.org/gopkg.in/errgo.v2";)
+    (synopsis "Functions that use the fmt package to format error messages")
+    (description "This package is the same as @code{gopkg.in/errgo.v2/errors}
+except that it adds convenience functions that use the fmt package to format
+error messages.")
+    (license license:bsd-3)))



reply via email to

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