From c18979f7b2d585ff869d16429675618584d1c1c5 Mon Sep 17 00:00:00 2001 From: roconnor Date: Fri, 22 May 2026 15:00:55 -0400 Subject: [PATCH] rhash: disable compile-time SHA-NI for x86_64 compatibility Since https://github.com/rhash/RHash/commit/e5b0cb6e7092798b14d2e4d85c49e6367a5f7432 rhash, by default, hardcodes SHA-NI instructions at compile time. However, these instructions are not available on older x86_64 CPUs. In particular, rhash is a dependency of cmake, meaning that no cmake builds can run on CPUs without SHA-NI instructions with the default configuration. This patch disables SHA-NI in rhash. Fixes https://github.com/NixOS/nixpkgs/issues/519825. See also the parallel Debian fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113938 --- pkgs/by-name/rh/rhash/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/rh/rhash/package.nix b/pkgs/by-name/rh/rhash/package.nix index adb2c682ce6d..e8ef05814fee 100644 --- a/pkgs/by-name/rh/rhash/package.nix +++ b/pkgs/by-name/rh/rhash/package.nix @@ -29,6 +29,7 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--ar=${stdenv.cc.targetPrefix}ar" "--target=${stdenv.hostPlatform.config}" + "--disable-shani" (lib.enableFeature enableStatic "static") (lib.enableFeature enableStatic "lib-static") ];