40 stdenv.mkDerivation rec {
41 pname = "easyrpg-player";
44 src = fetchFromGitHub {
48 hash = "sha256-t0sa9ONVVfsiTy+us06vU2bMa4QmmQeYxU395g0WS6w=";
52 # Fixed compatibility with fmt > 9
53 # Remove when version > 0.8
55 name = "0001-Fix-building-with-fmtlib-10.patch";
56 url = "https://github.com/EasyRPG/Player/commit/ab6286f6d01bada649ea52d1f0881dde7db7e0cf.patch";
57 hash = "sha256-GdSdVFEG1OJCdf2ZIzTP+hSrz+ddhTMBvOPjvYQHy54=";
87 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
97 wildmidi # until packaged on Darwin
98 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
105 "-DPLAYER_ENABLE_TESTS=${lib.boolToString doCheck}"
113 buildFlags = lib.optionals doCheck [
117 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
119 mv Package $out/Applications
120 ln -s $out/{Applications/EasyRPG\ Player.app/Contents/MacOS,bin}/EasyRPG\ Player
123 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
125 enableParallelChecking = true;
128 description = "RPG Maker 2000/2003 and EasyRPG games interpreter";
129 homepage = "https://easyrpg.org/";
130 license = licenses.gpl3;
132 platforms = platforms.all;
133 mainProgram = lib.optionalString stdenv.hostPlatform.isDarwin "EasyRPG Player";