From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YI2NNOwj22UKdAEA62LTzQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 12:26:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YI2NNOwj22UKdAEA62LTzQ (envelope-from ) for ; Sun, 25 Feb 2024 12:26:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=oHrbpmYP; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708860396; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=umLENbHl+Noig/HNHdP0k+idwjQaQsj0fWQa3i6AIYA=; b=aiUzrwvzHsnATI9GqRSd91RNjwT8lORGEX+LghERUoE/1lmKn15aetKQAbSHiYEwzQz0OL Ui4Y7Xt4pYjbVDrEpn0rmdMoTiXAuUtlHEw3tpmKqNuLB6XToli41b488TLcFADntOPK8r dXD4fJ0NC700RiIBizTPVNCIVn90PsOO4vWpGeQzYbtIJ7RZkv40hgbblYF+OXhiRCG9Gv 6UcW++W0jqLKr7LubCn7Q9GCY2YO0tqoyuqkU3gm/9BCTImLZvsZVX8p4TemfSc24l8JwZ kbwV1fg8IF5ZkqM7ZerDk8nQHf3nE3/Fztse74zKPhqA9TCUzLD3bCfgaFL0eA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=oHrbpmYP; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708860396; a=rsa-sha256; cv=none; b=KxVgAnPh4hSP1x4IskI7k8X0+I7aNFuk/7fOWrs+83XWDM+0bmzG6dz95Vgq7QqseujdPu HJFv+s5AdoXDViCN3CcQg3jt/SoZEljQzZtQYiHQpMI7yh2NYrRJarRfElfLDjcajnYeNl 6NW2nAqiPtJyvAbeoV5G9n78XpRXi1gyeGF5oRBynR/KFV7IlDPx8wr89Pm7tusN4DHAIf hvjRM8/TRe9ys8QDwej8rHEbajWxYaWuyudHTeZEatm8Xule6HuNEEPQtKv+FxuLwr7G6g AkL8IMpoPcL61156oAy/j2mFP8yjjcYvtCNs4i8392n2SiJCDo7W4t38ew9NPA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6B5583D9AC for ; Sun, 25 Feb 2024 12:26:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reCdz-0002Vb-N4; Sun, 25 Feb 2024 06:26:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reCda-0002SJ-0j for guix-patches@gnu.org; Sun, 25 Feb 2024 06:25:42 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reCdV-0006MY-Nd for guix-patches@gnu.org; Sun, 25 Feb 2024 06:25:40 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reCdu-00060D-2H for guix-patches@gnu.org; Sun, 25 Feb 2024 06:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69379] [PATCH 1/2] gnu: Add go-github-com-tklauser-numcpus. References: <878r38al98.fsf@troyfigiel.com> In-Reply-To: <878r38al98.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69379 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69379@debbugs.gnu.org Received: via spool by 69379-submit@debbugs.gnu.org id=B69379.170886035023037 (code B ref 69379); Sun, 25 Feb 2024 11:26:02 +0000 Received: (at 69379) by debbugs.gnu.org; 25 Feb 2024 11:25:50 +0000 Received: from localhost ([127.0.0.1]:37299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reCdi-0005zV-5n for submit@debbugs.gnu.org; Sun, 25 Feb 2024 06:25:50 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:52250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reCde-0005z9-7B for 69379@debbugs.gnu.org; Sun, 25 Feb 2024 06:25:48 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TjLyK1Nt4z9sb6 for <69379@debbugs.gnu.org>; Sun, 25 Feb 2024 12:25:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1708860313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=umLENbHl+Noig/HNHdP0k+idwjQaQsj0fWQa3i6AIYA=; b=oHrbpmYPWhu4Gq4xQdmiPSOw37sIgz1CdTIFZ4LSPdUbY3rBZGYf1DdTwioylTzVnhyRs8 LwbcU6FK/02e/xIvI+No7Wg5BSZNzeHVjQT3xqyr8Rq8O1bnC+usU2SuIM5/Ba63wRw4b+ /n6UALVLWrczvrRwQoLK3ak4IoHgvL1sEYdWorfC2BBzz8tJbAjegmQrP7XMnPqiVrHX1k MfOKl2AJ59b8/ZQQIyZjRyx1bAPIkxrF2cJpXJyqwzBzmy7fXEGDX1zT9LUInqlhszWo30 2SWInDkSGDCrbMNP/t1cgGU4oSA78sTUUiOZ/o8P3k5WyTdRBV2dTmKmCd/aGg== From: Troy Figiel Date: Sun, 25 Feb 2024 11:22:00 +0100 Message-ID: <877cisaiqz.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.27 X-Spam-Score: -5.27 X-Migadu-Queue-Id: 6B5583D9AC X-Migadu-Scanner: mx11.migadu.com X-TUID: dzlQLVk2YYy4 * gnu/packages/golang-xyz.scm (go-github-com-tklauser-numcpus): New variabl= e. --- 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 e68948e495..ad6b8f04e6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15,6 +15,7 @@ ;;; Copyright =C2=A9 2023 Timo Wilken ;;; Copyright =C2=A9 2023, 2024 Sharlatan Hellseher ;;; Copyright =C2=A9 2024 Artyom V. Poptsov +;;; Copyright =C2=A9 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -1189,6 +1190,42 @@ (define-public go-github-com-stathat-go (home-page "https://github.com/stathat/go") (license license:expat)))) =20 +(define-public go-github-com-tklauser-numcpus + (package + (name "go-github-com-tklauser-numcpus") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tklauser/numcpus") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xcwk42zr6q72zvkqdd9nbyhvq11rmwm2164mr2rvbb9z7alkff8")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.18 + #:import-path "github.com/tklauser/numcpus" + #:phases #~(modify-phases %standard-phases + (add-before 'check 'remove-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" + import-pat= h) + (for-each delete-file-recursively + ;; These tests try to access + ;; /sys/devices/system/cpu, which is not + ;; available in the test environment. + '("numcpus_test.go" "numcpus_linux_test= .go")))))))) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/tklauser/numcpus") + (synopsis "Provides information about the number of CPUs in the system= ") + (description + "This package provides both library functions and a command-line tool= to +query information regarding the number of CPUs available to the system.") + (license license:asl2.0))) + (define-public go-go-uber-org-automaxprocs (package (name "go-go-uber-org-automaxprocs") --=20 2.42.0