diff mbox series

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

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

Commit Message

Raghav Gururajan June 3, 2021, 8:51 p.m. UTC
* gnu/packages/golang.scm (go-github-com-skratchdot-open-golang): New variable.
---
 gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
diff mbox series

Patch

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"))