about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2023-08-26 19:35:42 +0200
committerOPNA2608 <christoph.neidahl@gmail.com>2023-08-26 19:35:42 +0200
commit1b572d52b73b1c51cd78e47cc12c80696128faae (patch)
treeef7a1eacf24cda02bb0512c0ec48755fafbf02e3
parentca743c970bd8e5348284174e17bd5b4a114f063f (diff)
downloadnixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar.gz
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar.bz2
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar.lz
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar.xz
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.tar.zst
nixlib-1b572d52b73b1c51cd78e47cc12c80696128faae.zip
box64: Migrate to finalAttrs pattern
-rw-r--r--pkgs/applications/emulators/box64/default.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/applications/emulators/box64/default.nix b/pkgs/applications/emulators/box64/default.nix
index 923bf3cbb2df..850441a56897 100644
--- a/pkgs/applications/emulators/box64/default.nix
+++ b/pkgs/applications/emulators/box64/default.nix
@@ -8,20 +8,19 @@
 , withDynarec ? stdenv.hostPlatform.isAarch64
 , runCommand
 , hello-x86_64
-, box64
 }:
 
 # Currently only supported on ARM
 assert withDynarec -> stdenv.hostPlatform.isAarch64;
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "box64";
   version = "0.2.4";
 
   src = fetchFromGitHub {
     owner = "ptitSeb";
-    repo = pname;
-    rev = "v${version}";
+    repo = "box64";
+    rev = "v${finalAttrs.version}";
     hash = "sha256-iCZv/WvqZkH6i23fSLA/p0nG5/CgzjyU5glVgje4c3w=";
   };
 
@@ -79,7 +78,7 @@ stdenv.mkDerivation rec {
       rev-prefix = "v";
     };
     tests.hello = runCommand "box64-test-hello" {
-      nativeBuildInputs = [ box64 hello-x86_64 ];
+      nativeBuildInputs = [ finalAttrs.finalPackage ];
     } ''
       # There is no actual "Hello, world!" with any of the logging enabled, and with all logging disabled it's hard to
       # tell what problems the emulator has run into.
@@ -94,4 +93,4 @@ stdenv.mkDerivation rec {
     maintainers = with maintainers; [ gador OPNA2608 ];
     platforms = [ "x86_64-linux" "aarch64-linux" "riscv64-linux" "powerpc64le-linux" ];
   };
-}
+})