From ba17f399981f4f9f728902fe12896a750bf71856 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 9 Sep 2025 11:02:54 +0100 Subject: [PATCH] gnu: Add go-github-com-shirou-gopsutil-v4. * gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v4): New variable. Change-Id: I132f9fc722737442b2e8651799384138d6dec86a --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ec470dde0889c4f614d897abbaeb5091c103befe..f6c637787b79510cb08ff162b22782d0c4a11740 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -18090,6 +18090,33 @@ sensors).") ;; 2. PlatformInformation() returns empty: #:test-flags #~(list "-skip" "TestUsers|TestPlatformInformation"))))) +(define-public go-github-com-shirou-gopsutil-v4 + (package + (inherit go-github-com-shirou-gopsutil-v3) + (name "go-github-com-shirou-gopsutil-v4") + (version "4.25.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shirou/gopsutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q9125fpz4cw6mmxx7qa74qf3xq5x0nrraspfmwhlhdpabjag9lp")))) + (arguments + (list + #:import-path "github.com/shirou/gopsutil/v4" + ;; Three tests fail: + ;; [1] error open /var/run/utmp: no such file or directory + ;; [2] PlatformInformation() returns empty + ;; [3] Could not get temperature + #:test-flags #~(list "-skip" (string-join + (list "TestUsers" ;1 + "TestPlatformInformation" ;2 + "TestTemperatures") ;3 + "|")))))) + (define-public go-github-com-shurcool-sanitized-anchor-name (package (name "go-github-com-shurcool-sanitized-anchor-name")