Subject: [bug#48729] [PATCH v2 44/47] gnu: Add go-github-com-skratchdot-open-golang.

From: Raghav Gururajan <[email-masked]>
Date: Thu, 3 Jun 2021 16:51:07 -0400

* gnu/packages/golang.scm (go-github-com-skratchdot-open-golang): 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 e5e3098e97..d6e54c9d8b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -74,6 +74,41 @@
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
+(define-public go-github-com-skratchdot-open-golang
+  (let ((commit "eef8423979666925a58eb77f9db583e54320d5a4")
+        (revision "28"))
+    (package
+      (name "go-github-com-skratchdot-open-golang")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/skratchdot/open-golang")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0n6387csjn024db8wldadsiy8ljz7lk7szl6ls28fcbkax7rw86y"))
+         (modules '((guix build utils)))
+         (snippet
+          `(begin
+             (delete-file-recursively "vendor")
+             #t))))
+      (build-system go-build-system)
+      (arguments
+       `(#:tests? #f                    ; requires networking
+         #:unpack-path "github.com/skratchdot/open-golang"
+         #:import-path "github.com/skratchdot/open-golang/open"))
+      (inputs
+       `(("xdg-open" ,xdg-utils)))
+      (home-page "https://github.com/skratchdot/open-golang")
+      (synopsis "Proxy for XDG-Open")
+      (description "Open-GoLang provides a module to open a file, directory, or
+URI using the OS's default application for that object type.  Optionally, you can
+specify an application to use.")
+      (license license:expat))))
+
 (define-public go-github-com-skelterjohn-go-wde
   (let ((commit "adc3f78cdb457e9db21bfff010c85ed97315d8d7")
         (revision "203"))
-- 
2.31.1