From de69f20f628a8e9b57ef0f0e98d7687154eb12ba Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Fri, 19 Nov 2021 18:05:30 -0500 Subject: [PATCH] gnu: Add go-open-golang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/golang.scm (go-open-golang): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b7b96d91ad..0e86d4a463 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9042,3 +9042,32 @@ pcredential store, Pass, Secret Service, KDE Wallet, Encrypted File.") (home-page "https://gopkg.in/ini.v1") (license license:asl2.0))) +(define-public go-github-com-skratchdot-open-golang + (let ((commit "79abb63cd66e41cb1473e26d11ebdcd68b04c8e5") + (revision "0")) + (package + (name "go-github-com-skratchdot-open-golang") + (version "1.42.0") + (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 + "0jc13jn8cj7p14n79zhav2nwga6kf9rqs01ic5k7j7agwzzly3ww")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/skratchdot/open-golang" + #:phases (modify-phases %standard-phases + (delete 'build) + (delete 'check)))) + (synopsis "Open a file, directory, or URI using the default application") + (description + "Open a file, directory, or URI using the OS's default application for +that object type. Optionally, you can specify an application to use. On +GNU/Linux, this is a proxy for the @command{xdg-open} command.") + (home-page "https://github.com/skratchdot/open-golang") + (license license:expat)))) +