diff mbox series

[bug#48729,v3,31/47] gnu: Add go-github-com-getlantern-errors.

Message ID 20210609170022.8207-31-rg@raghavgururajan.name
State New
Headers show
Series None | expand

Commit Message

Raghav Gururajan June 9, 2021, 5 p.m. UTC
* gnu/packages/golang.scm (go-github-com-getlantern-errors): New variable.
---
 gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0bd8792c10..4886a0d326 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -69,6 +69,39 @@ 
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
+(define-public go-github-com-getlantern-errors
+  (package
+    (name "go-github-com-getlantern-errors")
+    (version "1.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/getlantern/errors")
+         (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ymz5nb9dplrim9sgfb523iqx1x08bxvbv9383ry2zbsfgqkc966"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/getlantern/errors"))
+    (native-inputs
+     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+    (propagated-inputs
+     `(("go-github-com-getlantern-context"
+        ,go-github-com-getlantern-context)
+       ("go-github-com-getlantern-hidden"
+        ,go-github-com-getlantern-hidden)
+       ("go-github-com-getlantern-ops"
+        ,go-github-com-getlantern-ops)
+       ("go-github-com-go-stack-stack"
+        ,go-github-com-go-stack-stack)))
+    (home-page "https://github.com/getlantern/errors")
+    (synopsis "Structured errors for Go")
+    (description "Structured errors for Go.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-go-stack-stack
   (package
     (name "go-github-com-go-stack-stack")