sharlatan pushed a commit to branch go-team
in repository guix.
commit 19ea1f13338ec5dc6cd162f7c819570758e65637
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Feb 13 16:27:06 2025 +0000
gnu: Add go-github-com-google-gops.
* gnu/packages/golang-xyz.scm (go-github-com-google-gops, gops): New
variables.
Change-Id: I93474a2ed18b006520fba1c7bacd7eef0cd7ebe4
---
gnu/packages/golang-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6d35314d2b..a4a6b53dd4 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6761,6 +6761,43 @@ for working with API description formats supported by
lightweight distribution of these models with minimal dependencies.")
(license license:asl2.0)))
+(define-public go-github-com-google-gops
+ (package
+ (name "go-github-com-google-gops")
+ (version "0.3.28")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/gops")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dbnpnvf624mygajxn13qcdh9nx23lr70p3x2y6xaz4jnprkilqw"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/google/gops"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; mkdir /homeless-shelter: permission denied
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (propagated-inputs
+ (list go-github-com-shirou-gopsutil-v3
+ go-github-com-spf13-cobra
+ go-github-com-xlab-treeprint
+ go-golang-org-x-sys
+ go-rsc-io-goversion))
+ (home-page "https://github.com/google/gops")
+ (synopsis "Listing and diagnosing Go processes tool")
+ (description
+ "This package implements a functionalit to list currently running Go
+processes.")
+ (license license:bsd-3)))
+
(define-public go-github-com-google-goterm
(package
(name "go-github-com-google-goterm")
@@ -18772,6 +18809,20 @@ editor.")
#:import-path "github.com/client9/misspell/cmd/misspell"
#:unpack-path "github.com/client9/misspell"))))
+(define-public gops
+ (package
+ (inherit go-github-com-google-gops)
+ (name "gops")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-google-gops)
+ ((#:tests? _ #t) #f)
+ ((#:install-source? _ #t) #f)
+ ((#:skip-build? _ #t) #f)))
+ (native-inputs (package-propagated-inputs go-github-com-google-gops))
+ (propagated-inputs '())
+ (inputs '())))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar