about summary refs log tree commit diff
path: root/pkgs/applications/emulators
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-07-15 20:00:04 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-17 01:58:05 -0300
commitd44583b78e742d8398e0f9227c5c4a87c5dbf1b0 (patch)
treed1cc4756dd59500e3c4a57fa23c31087c0e6680d /pkgs/applications/emulators
parent3e4ce678cbb9be137cda6cdc04c0f8043c86fac2 (diff)
x16-emulator: 41 -> 43
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r--pkgs/applications/emulators/commanderx16/emulator.nix44
1 files changed, 27 insertions, 17 deletions
diff --git a/pkgs/applications/emulators/commanderx16/emulator.nix b/pkgs/applications/emulators/commanderx16/emulator.nix
index 3acf4a07603aa..f452817036c0f 100644
--- a/pkgs/applications/emulators/commanderx16/emulator.nix
+++ b/pkgs/applications/emulators/commanderx16/emulator.nix
@@ -1,23 +1,32 @@
-{ stdenv
-, lib
+{ lib
+, stdenv
 , fetchFromGitHub
 , SDL2
+, zlib
 }:
 
 stdenv.mkDerivation (finalAttrs: {
   pname = "x16-emulator";
-  version = "41";
+  version = "43";
 
   src = fetchFromGitHub {
-    owner = "commanderx16";
+    owner = "X16Community";
     repo = "x16-emulator";
     rev = "r${finalAttrs.version}";
-    hash = "sha256-pnWqtSXQzUfQ8ADIXL9r2YjuBwHDQ2NAffAEFCN5Qzw=";
+    hash = "sha256-cZB7MRYlchD3zcBSWBIzyBiGHJobJvozkVT/7ftFkNg=";
   };
 
+  postPatch = ''
+    substituteInPlace Makefile \
+      --replace '/bin/echo' 'echo'
+  '';
+
   dontConfigure = true;
 
-  buildInputs = [ SDL2 ];
+  buildInputs = [
+    SDL2
+    zlib
+  ];
 
   installPhase = ''
     runHook preInstall
@@ -28,19 +37,20 @@ stdenv.mkDerivation (finalAttrs: {
     runHook postInstall
   '';
 
-  meta = with lib; {
-    homepage = "https://www.commanderx16.com/forum/index.php?/home/";
+  passthru = {
+    # upstream project recommends emulator and rom to be synchronized; passing
+    # through the version is useful to ensure this
+    inherit (finalAttrs) version;
+  };
+
+  meta = {
+    homepage = "https://cx16forum.com/";
     description = "The official emulator of CommanderX16 8-bit computer";
-    license = licenses.bsd2;
-    maintainers = with maintainers; [ AndersonTorres ];
+    changelog = "https://github.com/X16Community/x16-emulator/blob/r${finalAttrs.version}/RELEASES.md";
+    license = lib.licenses.bsd2;
+    maintainers = with lib.maintainers; [ AndersonTorres ];
     mainProgram = "x16emu";
     inherit (SDL2.meta) platforms;
-    broken = with stdenv; isDarwin && isAarch64;
-  };
-
-  passthru = {
-    # upstream project recommends emulator and rom to be synchronized;
-    # passing through the version is useful to ensure this
-    inherit (finalAttrs) version;
+    broken = stdenv.isDarwin && stdenv.isAarch64;
   };
 })