From 3b405f186e6ad7d991bc8ed64fcd1500be0ad2de Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Fri, 15 May 2026 23:01:02 -0400 Subject: [PATCH] python3Packages.hdf5plugin: avoid cpuinfo in build Assisted-by: Codex:gpt-5.5 --- pkgs/development/python-modules/hdf5plugin/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/hdf5plugin/default.nix b/pkgs/development/python-modules/hdf5plugin/default.nix index b8847f4e2746..6ebc0fee3761 100644 --- a/pkgs/development/python-modules/hdf5plugin/default.nix +++ b/pkgs/development/python-modules/hdf5plugin/default.nix @@ -59,6 +59,16 @@ buildPythonPackage rec { "zstd" ]; + # These feature defaults can enable CPU-specific code during the build: + # most are detected from the build host CPU, while BMI2 defaults to enabled + # on Linux/Darwin. Pin them to keep the output generic and machine-independent. + # https://github.com/silx-kit/hdf5plugin/blob/v6.0.0/doc/install.rst#available-options + env.HDF5PLUGIN_NATIVE = "False"; + env.HDF5PLUGIN_SSE2 = "False"; + env.HDF5PLUGIN_SSSE3 = "False"; + env.HDF5PLUGIN_AVX2 = "False"; + env.HDF5PLUGIN_AVX512 = "False"; + checkPhase = '' python test/test.py '';