xmage: 1.4.50V2 -> 1.4.51-dev_2024-01-30_19-35
This commit is contained in:
parent
d12dffd980
commit
80c279fc0c
@ -2,33 +2,35 @@
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, jdk8
|
||||
, unzip
|
||||
, unzrip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xmage";
|
||||
version = "1.4.50V2";
|
||||
version = "1.4.51-dev_2024-01-30_19-35";
|
||||
|
||||
src = fetchurl {
|
||||
url =
|
||||
"https://github.com/magefree/mage/releases/download/xmage_${finalAttrs.version}/xmage_${finalAttrs.version}.zip";
|
||||
sha256 = "sha256-t1peHYwCRy3wiIIwOD3nUyoxSOxbw6B/g++A1ofIbmg=";
|
||||
url = "http://xmage.today/files/mage-full_${finalAttrs.version}.zip";
|
||||
sha256 = "sha256-ogi0hd2FoulTnc3gg5cpLwr4Jln71YA0WBBZFOT6apg=";
|
||||
};
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
unpackPhase = ''
|
||||
${unzip}/bin/unzip $src
|
||||
${unzrip}/bin/unzrip $src
|
||||
'';
|
||||
|
||||
installPhase = let
|
||||
strVersion = lib.substring 0 6 finalAttrs.version;
|
||||
# upstream maintainers forgot to update version, so manual override for now
|
||||
# strVersion = lib.substring 0 6 finalAttrs.version;
|
||||
strVersion = "1.4.50";
|
||||
|
||||
in ''
|
||||
mkdir -p $out/bin
|
||||
cp -rv ./* $out
|
||||
|
||||
cat << EOS > $out/bin/xmage
|
||||
exec ${jdk8}/bin/java -Xms256m -Xmx512m -XX:MaxPermSize=384m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar $out/mage-client/lib/mage-client-${strVersion}.jar
|
||||
exec ${jdk8}/bin/java -Xms256m -Xmx1024m -XX:MaxPermSize=384m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar $out/xmage/mage-client/lib/mage-client-${strVersion}.jar
|
||||
EOS
|
||||
|
||||
chmod +x $out/bin/xmage
|
||||
|
Loading…
Reference in New Issue
Block a user