From 5f78ac9bd1f321a27ce84226b49942a1a0e74079 Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Sun, 13 Apr 2025 00:51:26 +0200 Subject: [PATCH] nix: unicorn, Force sprr register check to avoid Nix caching broken builds (#2867) --- nix/pyenv.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix/pyenv.nix b/nix/pyenv.nix index 148a16324..577e34851 100644 --- a/nix/pyenv.nix +++ b/nix/pyenv.nix @@ -220,6 +220,15 @@ let postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace ./src/CMakeLists.txt \ --replace-fail 'set(CMAKE_C_COMPILER "/usr/bin/cc")' 'set(CMAKE_C_COMPILER "${stdenv.cc}/bin/cc")' || true + + # Due to an issue with the Apple ARM64 Hypervisor on GitHub Actions, + # we need to force the `sprr` register check. + # Otherwise, Nix may cache broken builds. + # See: + # - https://github.com/actions/runner-images/issues/11127 + # - https://github.com/unicorn-engine/unicorn/issues/2033 + substituteInPlace ./src/qemu/configure \ + --replace-fail "have_sprr_mrs='no'" "have_sprr_mrs='yes'" ''; } )