guix-patches
[Top][All Lists]
Advanced

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

[bug#48729] [PATCH v2 26/47] gnu: Add go-github-com-getlantern-context.


From: Raghav Gururajan
Subject: [bug#48729] [PATCH v2 26/47] gnu: Add go-github-com-getlantern-context.
Date: Thu, 3 Jun 2021 06:44:46 -0400

* gnu/packages/golang.scm (go-github-com-getlantern-context): 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 9c182bba3c..7ccb085587 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -69,6 +69,34 @@
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
+(define-public go-github-com-getlantern-context
+  (let ((commit "c447772a6520c1a3ae6294a7df725ee08230f14e")
+        (revision "30"))
+    (package
+      (name "go-github-com-getlantern-context")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/getlantern/context";)
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "08s1m1pqkwppvvc6biccyxs7wqzmgjyhyqdgfzwm9vp0c6vzr2sg"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:import-path "github.com/getlantern/context"))
+      (native-inputs
+       `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+      (synopsis "Goroutine-based Context State")
+      (description "This package provides a stack abstraction that allows 
nested
+contexts similar to jtolds' library, but using Enter() and Exit() instead of
+callback functions.")
+      (home-page "https://github.com/getlantern/context";)
+      (license license:asl2.0))))
+
 (define-public go-github-com-burntsushi-xgbutil
   (let ((commit "ad855c7130460fb6cf40af9302c649a69082a4ee")
         (revision "335"))
-- 
2.31.1






reply via email to

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