From 38ebfcf596cd6b1f4336b66d6c71de3c9b876e88 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 11 Jun 2025 08:37:09 +0200 Subject: [PATCH] box64: 0.3.4 -> 0.3.6 --- pkgs/applications/emulators/box64/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/emulators/box64/default.nix b/pkgs/applications/emulators/box64/default.nix index 04c4f768e9bd..537998c47eb3 100644 --- a/pkgs/applications/emulators/box64/default.nix +++ b/pkgs/applications/emulators/box64/default.nix @@ -21,15 +21,22 @@ assert stdenv.mkDerivation (finalAttrs: { pname = "box64"; - version = "0.3.4"; + version = "0.3.6"; src = fetchFromGitHub { owner = "ptitSeb"; repo = "box64"; rev = "v${finalAttrs.version}"; - hash = "sha256-CY5Emg5TsMVs++2EukhVzqn9440kF/BO8HZGQgCpGu4="; + hash = "sha256-Z8r7aonVj7VSifgLKx/L7VRdGNnQtTvS4mjI+2+uPxY="; }; + # Setting cpu doesn't seem to work (or maybe isn't enough / gets overwritten by the wrapper's arch flag?), errors about unsupported instructions for target + # (this is for code that gets executed conditionally if the cpu at runtime supports their features, so setting this should be fine) + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail 'ASMFLAGS -pipe -mcpu=cortex-a76' 'ASMFLAGS -pipe -march=armv8.2-a+fp16+dotprod' + ''; + nativeBuildInputs = [ cmake python3