mame: fix on darwin (#371422)

authored by

Thiago Kenji Okada and committed by
GitHub
ba30dde6 8fae40e4

+17 -7
+17 -7
pkgs/applications/emulators/mame/default.nix
··· 7 7 SDL2_ttf, 8 8 copyDesktopItems, 9 9 expat, 10 + fetchurl, 10 11 flac, 11 12 fontconfig, 12 13 glm, ··· 18 19 libpulseaudio, 19 20 makeDesktopItem, 20 21 makeWrapper, 21 - papirus-icon-theme, 22 22 pkg-config, 23 23 portaudio, 24 24 portmidi, ··· 28 28 rapidjson, 29 29 sqlite, 30 30 utf8proc, 31 + versionCheckHook, 31 32 which, 32 33 writeScript, 33 34 zlib, ··· 156 157 # to the final package after we figure out how they work 157 158 installPhase = 158 159 let 159 - icon = "${papirus-icon-theme}/share/icons/Papirus/32x32/apps/mame.svg"; 160 + icon = fetchurl { 161 + url = "https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/refs/heads/master/Papirus/32x32/apps/mame.svg"; 162 + hash = "sha256-s44Xl9UGizmddd/ugwABovM8w35P0lW9ByB69MIpG+E="; 163 + }; 160 164 in 161 165 '' 162 166 runHook preInstall ··· 188 192 189 193 enableParallelBuilding = true; 190 194 195 + doInstallCheck = true; 196 + nativeInstallCheckInputs = [ versionCheckHook ]; 197 + versionCheckProgramArg = [ "-h" ]; 198 + 191 199 passthru.updateScript = writeScript "mame-update-script" '' 192 200 #!/usr/bin/env nix-shell 193 201 #!nix-shell -i bash -p curl common-updater-scripts jq ··· 198 206 update-source-version mame "''${latest_version/mame0/0.}" 199 207 ''; 200 208 201 - meta = with lib; { 209 + meta = { 202 210 homepage = "https://www.mamedev.org/"; 203 211 description = "Multi-purpose emulation framework"; 204 212 longDescription = '' ··· 216 224 focus. 217 225 ''; 218 226 changelog = "https://github.com/mamedev/mame/releases/download/mame${srcVersion}/whatsnew_${srcVersion}.txt"; 219 - license = with licenses; [ 227 + license = with lib.licenses; [ 220 228 bsd3 221 229 gpl2Plus 222 230 ]; 223 - maintainers = with maintainers; [ thiagokokada ]; 224 - platforms = platforms.unix; 225 - broken = stdenv.hostPlatform.isDarwin; 231 + maintainers = with lib.maintainers; [ 232 + thiagokokada 233 + DimitarNestorov 234 + ]; 235 + platforms = lib.platforms.unix; 226 236 mainProgram = "mame"; 227 237 }; 228 238 }