[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/37: gnu: Add go-github-com-tklauser-go-sysconf.
From: |
guix-commits |
Subject: |
02/37: gnu: Add go-github-com-tklauser-go-sysconf. |
Date: |
Wed, 6 Mar 2024 18:46:16 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit bd4c6bbf0a821387687bb16221c59f0c1563a26e
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sun Feb 25 11:24:41 2024 +0100
gnu: Add go-github-com-tklauser-go-sysconf.
* gnu/packages/golang-xyz.scm (go-github-com-tklauser-go-sysconf): New
variable.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index ad6b8f04e6..1badc3856c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1190,6 +1190,43 @@ Use waterutil with it to work with TUN/TAP
packets/frames.")
(home-page "https://github.com/stathat/go")
(license license:expat))))
+(define-public go-github-com-tklauser-go-sysconf
+ (package
+ (name "go-github-com-tklauser-go-sysconf")
+ (version "0.3.13")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tklauser/go-sysconf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "07vkimncnmh89706s49599h2w9gwa6jyrv70f8ifw90nsh766km9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.18
+ #:import-path "github.com/tklauser/go-sysconf"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'remove-failing-tests
+ (lambda* (#:key import-path #:allow-other-keys)
+ (delete-file-recursively
+ ;; sysconf_test.go (among others) tries to read the
+ ;; number of online CPUs using /proc/stat and
+ ;; /sys/devices/system/cpu/online. These files are not
+ ;; accessible in the test environment.
+ (string-append "src/" import-path
+ "/cgotest/sysconf_test.go")))))))
+ (propagated-inputs (list go-golang-org-x-sys
+ go-github-com-tklauser-numcpus))
+ (home-page "https://github.com/tklauser/go-sysconf")
+ (synopsis "Go implementation of @code{sysconf}")
+ (description
+ "This package implements @code{sysconf} and provides the associated
+@code{SC_*} constants to query system configuration values at run time.")
+ (license license:bsd-3)))
+
(define-public go-github-com-tklauser-numcpus
(package
(name "go-github-com-tklauser-numcpus")
- branch master updated (201f90f34f -> b4107ca3ad), guix-commits, 2024/03/06
- 01/37: gnu: Add go-github-com-tklauser-numcpus., guix-commits, 2024/03/06
- 06/37: gnu: go-github-com-shirou-gopsutil: Reformat with guix style., guix-commits, 2024/03/06
- 07/37: gnu: Add go-github-com-shirou-gopsutil-v3., guix-commits, 2024/03/06
- 02/37: gnu: Add go-github-com-tklauser-go-sysconf.,
guix-commits <=
- 09/37: gnu: go-github-com-cheggaaa-pb-v3: Enable tests., guix-commits, 2024/03/06
- 08/37: gnu: go-github-com-vividcortex-ewma: Fix import-path., guix-commits, 2024/03/06
- 18/37: gnu: Add go-github-com-nwaples-rardecode-v2., guix-commits, 2024/03/06
- 19/37: gnu: Add go-github-com-ugorji-go-codec., guix-commits, 2024/03/06
- 23/37: gnu: go-github-com-spf13-afero: Add missing input., guix-commits, 2024/03/06
- 21/37: gnu: sqls: Add missing inputs., guix-commits, 2024/03/06
- 26/37: gnu: go-go-uber-org-zap: Move to golang-xyz., guix-commits, 2024/03/06
- 27/37: gnu: Add go-github-com-cskr-pubsub., guix-commits, 2024/03/06
- 30/37: gnu: go-github-com-hashicorp-go-syslog: Move to golang-xyz., guix-commits, 2024/03/06
- 13/37: gnu: go-github-com-vividcortex-ewma: Move to golang-xyz., guix-commits, 2024/03/06