From patchwork Mon Mar 16 07:15:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 20708 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BC1B427BBEA; Mon, 16 Mar 2020 07:21:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 83E3027BBE4 for ; Mon, 16 Mar 2020 07:21:42 +0000 (GMT) Received: from localhost ([::1]:35194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDk4D-0007IO-ON for patchwork@mira.cbaines.net; Mon, 16 Mar 2020 03:21:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDk3c-0007HU-32 for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDk3a-00072K-H4 for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDk3a-00070u-AQ for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDk3a-0001O2-6M for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40086] [PATCH 06/11] gnu: Add go-github-com-klauspost-cpuid. References: <20200316070412.12364-1-efraim@flashner.co.il> In-Reply-To: <20200316070412.12364-1-efraim@flashner.co.il> Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Mar 2020 07:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40086 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40086@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 40086-submit@debbugs.gnu.org id=B40086.15843432055209 (code B ref 40086); Mon, 16 Mar 2020 07:21:02 +0000 Received: (at 40086) by debbugs.gnu.org; 16 Mar 2020 07:20:05 +0000 Received: from localhost ([127.0.0.1]:35994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDk2f-0001Lx-29 for submit@debbugs.gnu.org; Mon, 16 Mar 2020 03:20:05 -0400 Received: from flashner.co.il ([178.62.234.194]:60700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDk2d-0001LI-15 for 40086@debbugs.gnu.org; Mon, 16 Mar 2020 03:20:03 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 3834A40103; Mon, 16 Mar 2020 07:19:57 +0000 (UTC) From: Efraim Flashner Date: Mon, 16 Mar 2020 09:15:54 +0200 Message-Id: <20200316071559.13930-7-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-klauspost-cpuid): New variable. --- gnu/packages/golang.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 419b88552a..11dfb23e46 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3526,3 +3526,28 @@ characters with their ASCII approximations.") (synopsis "Go library that pluralizes and singularizes English nouns") (description "Go library that pluralizes and singularizes English nouns.") (license license:bsd-2)))) + +(define-public go-github-com-klauspost-cpuid + (package + (name "go-github-com-klauspost-cpuid") + (version "1.2.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/cpuid") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1s510210wdj5dkamii1qrk7v87k4qpdcrrjzflp5ha9iscw6b06l")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/klauspost/cpuid")) + (home-page "https://github.com/klauspost/cpuid") + (synopsis "CPU feature identification for Go") + (description "@code{cpuid} provides information about the CPU running the +current program. CPU features are detected on startup, and kept for fast access +through the life of the application. Currently x86 / x64 (AMD64) is supported, +and no external C (cgo) code is used, which should make the library very eas +to use.") + (license license:expat)))