8 stdenv.mkDerivation (finalAttrs: {
10 version = "1.4.51-dev_2024-01-30_19-35";
13 url = "http://xmage.today/files/mage-full_${finalAttrs.version}.zip";
14 sha256 = "sha256-ogi0hd2FoulTnc3gg5cpLwr4Jln71YA0WBBZFOT6apg=";
17 preferLocalBuild = true;
20 ${unzrip}/bin/unzrip $src
24 # upstream maintainers forgot to update version, so manual override for now
25 # strVersion = lib.substring 0 6 finalAttrs.version;
26 strVersion = "1.4.50";
32 cat << EOS > $out/bin/xmage
33 exec ${jdk8}/bin/java -Xms256m -Xmx1024m -XX:MaxPermSize=384m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar $out/xmage/mage-client/lib/mage-client-${strVersion}.jar
36 chmod +x $out/bin/xmage
40 description = "Magic Another Game Engine";
41 mainProgram = "xmage";
42 sourceProvenance = with sourceTypes; [ binaryBytecode ];
43 license = licenses.mit;
44 maintainers = with maintainers; [ matthiasbeyer abueide ];
45 homepage = "http://xmage.de/";