about summary refs log tree commit diff
path: root/pkgs/applications/emulators/retroarch/update_cores.py
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2024-05-04 13:06:13 +0100
committerThiago Kenji Okada <thiagokokada@gmail.com>2024-05-04 13:15:08 +0100
commitdb219563a38d186876ea5905ffe5dde0d9dfeb75 (patch)
tree72c0065a2d0f270538e79dab4aa51fbf0888f4bf /pkgs/applications/emulators/retroarch/update_cores.py
parentcbc0c4e0c665d22b7d79b29c6ae50e5f95284e07 (diff)
libretro.mame: unstable-2024-05-03 -> unstable-2024-05-04
Diffstat (limited to 'pkgs/applications/emulators/retroarch/update_cores.py')
-rwxr-xr-xpkgs/applications/emulators/retroarch/update_cores.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/emulators/retroarch/update_cores.py b/pkgs/applications/emulators/retroarch/update_cores.py
index 3b4ee5f776925..4e15315ce7268 100755
--- a/pkgs/applications/emulators/retroarch/update_cores.py
+++ b/pkgs/applications/emulators/retroarch/update_cores.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env nix-shell
-#!nix-shell -I nixpkgs=./ -i python3 -p "python3.withPackages (ps: with ps; [ ])" -p git -p nix-prefetch-github -p nix-prefetch-scripts
+#!nix-shell -I nixpkgs=./ -i python3 -p "python3.withPackages (ps: with ps; [ ])" -p git -p nix-prefetch-github -p nix-prefetch-git -p nix-prefetch-scripts
 
 import json
 import os
@@ -69,7 +69,11 @@ CORES = {
     "gw": {"repo": "gw-libretro"},
     "handy": {"repo": "libretro-handy"},
     "hatari": {"repo": "hatari"},
-    "mame": {"repo": "mame"},
+    # Setting fetch_submodules=True since libretro/mame constantly gives
+    # different hashes for its tarballs, see:
+    # - https://github.com/NixOS/nixpkgs/issues/259488#issuecomment-1751768379
+    # - https://github.com/NixOS/nixpkgs/pull/303494
+    "mame": {"repo": "mame", "fetch_submodules": True},
     "mame2000": {"repo": "mame2000-libretro"},
     "mame2003": {"repo": "mame2003-libretro"},
     "mame2003-plus": {"repo": "mame2003-plus-libretro"},