diff options
author | Andy Tai <atai@atai.org> | 2024-06-16 17:32:57 -0700 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2024-06-26 16:28:18 +0200 |
commit | 8c9902b131e06b1b0645698135fdabeacb381983 (patch) | |
tree | 3cb0a2d9656b63f3a324f3600c4d5748fbba993c /gnu/packages/assembly.scm | |
parent | b594c2b154b900a29855afc00a21306ab09a153d (diff) | |
download | guix-8c9902b131e06b1b0645698135fdabeacb381983.tar.gz |
gnu: Add cpu-features.
* gnu/packages/assembly.scm (cpu-features): New variable. Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84 Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages/assembly.scm')
-rw-r--r-- | gnu/packages/assembly.scm | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index b38a4512ff..b7ccb153d3 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -5,14 +5,13 @@ ;;; Copyright © 2016, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon@gmail.com> -;;; Copyright © 2019 Andy Tai <atai@atai.org> +;;; Copyright © 2019, 2022, 2024 Andy Tai <atai@atai.org> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> ;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org> ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net> ;;; Copyright © 2022 Felix Gruber <felgru@posteo.net> -;;; Copyright © 2022 Andy Tai <atai@atai.org> ;;; Copyright © 2023 Simon South <simon@simonsouth.net> ;;; Copyright © 2023 B. Wilson <elaexuotee@wilsonb.com> ;;; @@ -646,6 +645,44 @@ SSE4.2) intrinsic functions as defined in corresponding x86 compilers headers files.") (license license:bsd-2)))) +(define-public cpu-features + (package + (name "cpu-features") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/cpu_features") + (commit (string-append "v" version)))) + (sha256 + (base32 "0297li3408zm1dqnibaasrb51vs7n7iscnxsji3b78g0pir7jwxr")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags + #~(list "-DBUILD_TESTING=off" ;; XXX: insists on using bundled googletest + "-DBUILD_SHARED_LIBS=ON"))) + (home-page "https://github.com/google/cpu_features") + (synopsis "Cross platform C99 library to get cpu features at runtime") + (description + "Cpu_features is a cross-platform C library to retrieve CPU features +(such as available instructions) at runtime, and supports these CPU architectures +@itemize +@item x86-64 +@item AArch64 +@item ARM +@item MIPS +@item POWER +@item RISC-V +@item LoongArch +@item S390x +@end itemize") + (license license:asl2.0))) + + (define-public blinkenlights (package (name "blinkenlights") |