box64: Migrate to finalAttrs pattern

OPNA2608 1b572d52 ca743c97

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