From e2d0eba13cdb1de2d7209da0e70f149ff166eb0f Mon Sep 17 00:00:00 2001 From: Spencer King Date: Thu, 2 Jan 2025 19:54:48 +0000 Subject: [PATCH] gnu: Add julia-cpuid. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/julia-xyz.scm (julia-cpuid): New variable. Change-Id: Ifd9abfb142184c58941c97e959a4b5c9247ce1a8 Signed-off-by: Ludovic Courtès --- gnu/packages/julia-xyz.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 03621a94c72..a6a4eabd6f9 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2021 Vinicius Monego ;;; Copyright © 2021 jgart ;;; Copyright © 2023 Sharlatan Hellseher -;;; Copyright © 2024 Spencer King +;;; Copyright © 2024, 2025 Spencer King ;;; ;;; This file is part of GNU Guix. ;;; @@ -1466,6 +1466,28 @@ perform optimization and therefore ideal for computer vision applications such as SLAM (simultaneous localization and mapping).") (license license:expat)))) +(define-public julia-cpuid + (package + (name "julia-cpuid") + (version "0.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/m-j-w/CpuId.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0x2csy8cvd1rm49qpqpkb3zs7swj4r91zdsyjafqr7hvjp9h3hjz")))) + (build-system julia-build-system) + (propagated-inputs (list julia-precompiletools)) + (home-page "https://github.com/m-j-w/CpuId.jl") + (synopsis "Ask the CPU for its features and specifications") + (description + "This package allows you to query the availability of specific +CPU features with low run-time cost.") + (license license:expat))) + (define-public julia-crayons (package (name "julia-crayons")