From 920c113f22c32fe8f5cebcfb04b6ca771c5b20f7 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 9 Aug 2020 16:55:44 +0300 Subject: 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(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a0e6851fd5..ea7a6f19db 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))) -- cgit v1.2.3