box64: Migrate to finalAttrs pattern

OPNA2608 1b572d52 ca743c97

+5 -6
+5 -6
pkgs/applications/emulators/box64/default.nix
··· 8 , withDynarec ? stdenv.hostPlatform.isAarch64 9 , runCommand 10 , hello-x86_64 11 - , box64 12 }: 13 14 # Currently only supported on ARM 15 assert withDynarec -> stdenv.hostPlatform.isAarch64; 16 17 - stdenv.mkDerivation rec { 18 pname = "box64"; 19 version = "0.2.4"; 20 21 src = fetchFromGitHub { 22 owner = "ptitSeb"; 23 - repo = pname; 24 - rev = "v${version}"; 25 hash = "sha256-iCZv/WvqZkH6i23fSLA/p0nG5/CgzjyU5glVgje4c3w="; 26 }; 27 ··· 79 rev-prefix = "v"; 80 }; 81 tests.hello = runCommand "box64-test-hello" { 82 - nativeBuildInputs = [ box64 hello-x86_64 ]; 83 } '' 84 # There is no actual "Hello, world!" with any of the logging enabled, and with all logging disabled it's hard to 85 # tell what problems the emulator has run into. ··· 94 maintainers = with maintainers; [ gador OPNA2608 ]; 95 platforms = [ "x86_64-linux" "aarch64-linux" "riscv64-linux" "powerpc64le-linux" ]; 96 }; 97 - }
··· 8 , withDynarec ? stdenv.hostPlatform.isAarch64 9 , runCommand 10 , hello-x86_64 11 }: 12 13 # Currently only supported on ARM 14 assert withDynarec -> stdenv.hostPlatform.isAarch64; 15 16 + stdenv.mkDerivation (finalAttrs: { 17 pname = "box64"; 18 version = "0.2.4"; 19 20 src = fetchFromGitHub { 21 owner = "ptitSeb"; 22 + repo = "box64"; 23 + rev = "v${finalAttrs.version}"; 24 hash = "sha256-iCZv/WvqZkH6i23fSLA/p0nG5/CgzjyU5glVgje4c3w="; 25 }; 26 ··· 78 rev-prefix = "v"; 79 }; 80 tests.hello = runCommand "box64-test-hello" { 81 + nativeBuildInputs = [ finalAttrs.finalPackage ]; 82 } '' 83 # There is no actual "Hello, world!" with any of the logging enabled, and with all logging disabled it's hard to 84 # tell what problems the emulator has run into. ··· 93 maintainers = with maintainers; [ gador OPNA2608 ]; 94 platforms = [ "x86_64-linux" "aarch64-linux" "riscv64-linux" "powerpc64le-linux" ]; 95 }; 96 + })