mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
gnu: go-github-com-shirou-gopsutil: Update to 2.21.11.
* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil): Update to 2.21.11. [arguments]: Fix tests. <#:go>: Update to go-1.18. <#:phases>: Add 'remove-v3 and 'remove-failing-tests phases. [propagated-inputs]: Add go-golang-org-x-sys. [native-inputs]: Add go-github-com-stretchr-testify and procps. * gnu/packages/golang-xyz.scm: Add (gnu packages linux) module. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
8468c55565
commit
12b8b129b3
1 changed files with 41 additions and 22 deletions
|
@ -46,7 +46,8 @@
|
||||||
#:use-module (gnu packages golang-build)
|
#:use-module (gnu packages golang-build)
|
||||||
#:use-module (gnu packages golang-check)
|
#:use-module (gnu packages golang-check)
|
||||||
#:use-module (gnu packages golang-compression)
|
#:use-module (gnu packages golang-compression)
|
||||||
#:use-module (gnu packages golang-crypto))
|
#:use-module (gnu packages golang-crypto)
|
||||||
|
#:use-module (gnu packages linux))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;;
|
;;;
|
||||||
|
@ -1095,29 +1096,47 @@ Metrics library.")
|
||||||
(license license:bsd-2))))
|
(license license:bsd-2))))
|
||||||
|
|
||||||
(define-public go-github-com-shirou-gopsutil
|
(define-public go-github-com-shirou-gopsutil
|
||||||
(let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399")
|
(package
|
||||||
(revision "0"))
|
(name "go-github-com-shirou-gopsutil")
|
||||||
(package
|
(version "2.21.11")
|
||||||
(name "go-github-com-shirou-gopsutil")
|
(source (origin
|
||||||
(version (git-version "v2.19.7" revision commit))
|
(method git-fetch)
|
||||||
(source (origin
|
(uri (git-reference
|
||||||
(method git-fetch)
|
(url "https://github.com/shirou/gopsutil")
|
||||||
(uri (git-reference
|
(commit (string-append "v" version))))
|
||||||
(url "https://github.com/shirou/gopsutil")
|
(file-name (git-file-name name version))
|
||||||
(commit commit))) ; XXX
|
(sha256
|
||||||
(file-name (git-file-name name version))
|
(base32
|
||||||
(sha256
|
"0gpb10xkdwfimn1sp4jhrvzz4p3zgmdb78q8v23nap3yi6v4bff5"))))
|
||||||
(base32
|
(build-system go-build-system)
|
||||||
"0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws"))))
|
(arguments
|
||||||
(build-system go-build-system)
|
(list
|
||||||
(arguments
|
#:go go-1.18
|
||||||
'(#:import-path "github.com/shirou/gopsutil"))
|
#:import-path "github.com/shirou/gopsutil"
|
||||||
(synopsis "Process and system monitoring in Go")
|
#:phases #~(modify-phases %standard-phases
|
||||||
(description "This package provides a library for retrieving information
|
(add-after 'unpack 'remove-v3
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
;; We remove the separately included v3 module.
|
||||||
|
(delete-file-recursively (string-append "src/"
|
||||||
|
import-path
|
||||||
|
"/v3"))))
|
||||||
|
(add-before 'check 'remove-failing-tests
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(delete-file-recursively
|
||||||
|
;; host_test.go tries to access files such as
|
||||||
|
;; /var/run/utmp that do not exist in the build
|
||||||
|
;; environment.
|
||||||
|
(string-append "src/" import-path "/host/host_test.go")))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-tklauser-go-sysconf go-golang-org-x-sys))
|
||||||
|
(native-inputs
|
||||||
|
(list go-github-com-stretchr-testify procps))
|
||||||
|
(synopsis "Process and system monitoring in Go")
|
||||||
|
(description "This package provides a library for retrieving information
|
||||||
on running processes and system utilization (CPU, memory, disks, network,
|
on running processes and system utilization (CPU, memory, disks, network,
|
||||||
sensors).")
|
sensors).")
|
||||||
(home-page "https://github.com/shirou/gopsutil")
|
(home-page "https://github.com/shirou/gopsutil")
|
||||||
(license license:bsd-3))))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public go-github-com-skip2-go-qrcode
|
(define-public go-github-com-skip2-go-qrcode
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue