gnu: Add gopkg-in-errgo-fmt-errors.

* gnu/packages/golang.scm (gopkg-in-errgo-fmt-errors): New variable.
This commit is contained in:
Oleg Pykhalov 2020-08-09 16:55:44 +03:00
parent d30ba2671b
commit 920c113f22
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -5602,3 +5602,31 @@ (define-public go-github-com-rogpeppe-go-internal
@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)))