unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Troy Figiel <troy@troyfigiel.com>
To: 69234@debbugs.gnu.org
Subject: [bug#69234] [PATCH v3 5/5] gnu: Add go-github-com-shirou-gopsutil-v3.
Date: Sat, 24 Feb 2024 09:05:28 +0100	[thread overview]
Message-ID: <87msrq9rwo.fsf@troyfigiel.com> (raw)
In-Reply-To: <87cysvbby7.fsf@troyfigiel.com>

* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v3): New variable.
---
 gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6eb5770c0f..2c154dd11c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
 ;;; Copyright © 2023, 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1141,6 +1142,33 @@ (define-public go-github-com-shirou-gopsutil-v2
 (define-public go-github-com-shirou-gopsutil
   (deprecated-package "go-github-com-shirou-gopsutil" go-github-com-shirou-gopsutil-v2))
 
+(define-public go-github-com-shirou-gopsutil-v3
+  (package
+    (inherit go-github-com-shirou-gopsutil-v2)
+    (name "go-github-com-shirou-gopsutil-v3")
+    (version "3.24.1")
+    (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 "0mnlxfmssd15la95c64rsfds92fwp5yx4b2kb8madbj21qi813jf"))))
+    (arguments
+     (list
+      #:go go-1.18
+      #:import-path "github.com/shirou/gopsutil"
+      #:phases #~(modify-phases %standard-phases
+                   (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")))))))))
+
 (define-public go-github-com-skip2-go-qrcode
   (package
     (name "go-github-com-skip2-go-qrcode")
-- 
2.42.0





  parent reply	other threads:[~2024-02-24  8:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-17 10:50 [bug#69234] [PATCH] gnu: go-github-com-shirou-gopsutil: Update to 3.24.1 Troy Figiel
2024-02-18 22:42 ` Sharlatan Hellseher
2024-02-19  8:35   ` Troy Figiel
2024-02-19 13:13     ` Sharlatan Hellseher
2024-02-25 11:35     ` Troy Figiel
2024-02-22 23:14 ` [bug#69234] [PATCH v3 1/5] gnu: go-github-com-shirou-gopsutil: Move to golang-xyz Troy Figiel
2024-02-24  7:53 ` [bug#69234] [PATCH v3 3/5] gnu: go-github-com-shirou-gopsutil: Reformat with guix style Troy Figiel
2024-02-24  7:59 ` [bug#69234] [PATCH v3 4/5] gnu: Deprecate go-github-com-shirou-gopsutil Troy Figiel
2024-02-24  8:05 ` Troy Figiel [this message]
2024-02-24  8:10 ` [bug#69234] [PATCH v2 0/5] gnu: Add go-github-com-shirou-gopsutil-v3 Troy Figiel
2024-02-24  8:19 ` [bug#69234] [PATCH v3 2/5] gnu: go-github-com-shirou-gopsutil: Update to 2.21.11 Troy Figiel
2024-02-24  8:25 ` [bug#69234] [PATCH v3 0/5] gnu: Add go-github-com-shirou-gopsutil-v3 Troy Figiel
2024-03-06 23:56 ` bug#69234: [PATCH] gnu: go-github-com-shirou-gopsutil: Update to 3.24.1 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msrq9rwo.fsf@troyfigiel.com \
    --to=troy@troyfigiel.com \
    --cc=69234@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).