Subject: [PATCH v3 34/47] gnu: Add go-github-com-getlantern-systray.

From: Raghav Gururajan <[email-masked]>
Date: Wed, 9 Jun 2021 13:00:09 -0400

* gnu/packages/golang.scm (go-github-com-getlantern-systray): New variable.
---
 gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 3e7366f60f..e9611b6f67 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -55,8 +55,10 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages base)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages gtk)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages pcre)
@@ -69,6 +71,39 @@
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
+(define-public go-github-com-getlantern-systray
+  (package
+    (name "go-github-com-getlantern-systray")
+    (version "1.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/getlantern/systray")
+         (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0m2n29jmks8rwcwixgmmd5dhpzqw1f7mqyjgyqyycml5w6da2m7z"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/getlantern/systray"))
+    (native-inputs
+     `(("gtk+:bin" ,gtk+ "bin")
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("libappindicator" ,libappindicator)))
+    (propagated-inputs
+     `(("go-github-com-getlantern-golog"
+        ,go-github-com-getlantern-golog)
+       ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
+    (home-page "https://github.com/getlantern/systray")
+    (synopsis "System Tray library for Go")
+    (description "SysTray is a cross-platform Go library to place an icon and
+menu in the notification area.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-getlantern-golog
   (let ((commit "9586b8bde3a95f71c84d9ee2a1a3f778759a76ab")
         (revision "25"))
-- 
2.31.1