From 47d3fa5bdf8a219d504f7c676fee19d8f16cc5a1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Apr 2026 10:55:59 +0000 Subject: [PATCH 1/2] box64: 0.4.0 -> 0.4.2 --- pkgs/applications/emulators/box64/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/emulators/box64/default.nix b/pkgs/applications/emulators/box64/default.nix index 683dbf2567cf..8017b8bb2480 100644 --- a/pkgs/applications/emulators/box64/default.nix +++ b/pkgs/applications/emulators/box64/default.nix @@ -21,13 +21,13 @@ assert stdenv.mkDerivation (finalAttrs: { pname = "box64"; - version = "0.4.0"; + version = "0.4.2"; src = fetchFromGitHub { owner = "ptitSeb"; repo = "box64"; tag = "v${finalAttrs.version}"; - hash = "sha256-ihg7sos2pyyZjXiYMct/gg/ianiu0yagNtXio+A7J3c="; + hash = "sha256-XESbBWXSj2vrwVaHsVIU+m/Ru/hOXcx9ywrA2WqXG/o="; }; # 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 From 8dcee6bba035d74836b55162d7b8f05ffa34db8a Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 4 May 2026 01:23:09 +0200 Subject: [PATCH 2/2] box64: Enable new DynaRec on powerpc64le --- pkgs/applications/emulators/box64/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/box64/default.nix b/pkgs/applications/emulators/box64/default.nix index 8017b8bb2480..b45e693c482b 100644 --- a/pkgs/applications/emulators/box64/default.nix +++ b/pkgs/applications/emulators/box64/default.nix @@ -16,7 +16,10 @@ assert withDynarec -> ( - stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV64 || stdenv.hostPlatform.isLoongArch64 + stdenv.hostPlatform.isAarch64 + || stdenv.hostPlatform.isRiscV64 + || stdenv.hostPlatform.isLoongArch64 + || (stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian) ); stdenv.mkDerivation (finalAttrs: { @@ -60,6 +63,9 @@ stdenv.mkDerivation (finalAttrs: { # Arch dynarec (lib.cmakeBool "ARM_DYNAREC" (withDynarec && stdenv.hostPlatform.isAarch64)) (lib.cmakeBool "RV64_DYNAREC" (withDynarec && stdenv.hostPlatform.isRiscV64)) + (lib.cmakeBool "PPC64LE_DYNAREC" ( + withDynarec && (stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian) + )) (lib.cmakeBool "LARCH64_DYNAREC" (withDynarec && stdenv.hostPlatform.isLoongArch64)) ];