From f18df4f9dea09575b5d40ed6d1461dfface4b7c4 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 9 Aug 2020 10:58:40 +0300 Subject: [PATCH] gnu: Add go-gopkg-in-warnings. * gnu/packages/golang.scm (go-gopkg-in-warnings): New variable. --- gnu/packages/golang.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e5d646e6a4..b991008bb9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5090,3 +5090,25 @@ (define-public go-github-com-emirpasic-gods-utils (arguments `(#:import-path "github.com/emirpasic/gods/utils" #:unpack-path "github.com/emirpasic/gods")))) + +(define-public go-gopkg-in-warnings + (package + (name "go-gopkg-in-warnings") + (version "0.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-warnings/warnings") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kzj50jn708cingn7a13c2wdlzs6qv89dr2h4zj8d09647vlnd81")))) + (build-system go-build-system) + (arguments + `(#:import-path "gopkg.in/warnings.v0")) + (home-page "https://gopkg.in/warnings.v0") + (synopsis "Error handling with non-fatal errors") + (description "Package warnings implements error handling with non-fatal +errors (warnings).") + (license license:bsd-2)))