From abf2fe76a8927cddf842782763578636ee5999c1 Mon Sep 17 00:00:00 2001 From: Mitchell Pleune Date: Sat, 8 Feb 2025 07:02:10 +0000 Subject: [PATCH] cpuinfo: disable tests The tests look to identify the host cpu, and will fail they cannot. --- pkgs/by-name/cp/cpuinfo/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/cp/cpuinfo/package.nix b/pkgs/by-name/cp/cpuinfo/package.nix index 357e71fa0379..455e6f3d34e9 100644 --- a/pkgs/by-name/cp/cpuinfo/package.nix +++ b/pkgs/by-name/cp/cpuinfo/package.nix @@ -37,7 +37,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "USE_SYSTEM_LIBS" true) ]; - doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); + # The tests check what CPU the host has and makes sure it can query information. + # not all build environments may have this information availaible. And, cpuinfo may + # not understand all CPUs (causing test failures such as https://github.com/pytorch/cpuinfo/issues/132) + # Instead, allow building in any environment. + doCheck = false; meta = { description = "Tools and library to detect essential for performance optimization information about host CPU";