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