minecraft-server: 1.12.2 -> 1.13.2
Update minecraft client to 1.13.2. The url is not as nice as before but it is the one provided by mojang. Adds 1_13_2, 1_13_1 as well. https://minecraft.net/en-us/download/server
This commit is contained in:
parent
3b698b537c
commit
9080b2eadf
|
@ -1,37 +1,63 @@
|
||||||
{ stdenv, fetchurl, jre }:
|
{ stdenv, fetchurl, jre }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "minecraft-server-${version}";
|
common = { version, sha256, url }:
|
||||||
version = "1.13.2";
|
stdenv.mkDerivation (rec {
|
||||||
|
name = "minecraft-server-${version}";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# Old url
|
inherit url sha256;
|
||||||
# https://s3.amazonaws.com/Minecraft.Download/versions/${version}/minecraft_server.${version}.jar
|
};
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/lib/minecraft
|
||||||
|
cp -v $src $out/lib/minecraft/server.jar
|
||||||
|
|
||||||
|
cat > $out/bin/minecraft-server << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
exec ${jre}/bin/java \$@ -jar $out/lib/minecraft/server.jar nogui
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $out/bin/minecraft-server
|
||||||
|
'';
|
||||||
|
|
||||||
|
phases = "installPhase";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Minecraft Server";
|
||||||
|
homepage = "https://minecraft.net";
|
||||||
|
license = stdenv.lib.licenses.unfreeRedistributable;
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice tomberek costrouc];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
in {
|
||||||
|
minecraft-server_1_13_2 = common {
|
||||||
|
version = "1.13.2";
|
||||||
url = "https://launcher.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar";
|
url = "https://launcher.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar";
|
||||||
sha256 = "13h8dxrrgqa1g6sd7aaw26779hcsqsyjm7xm0sknifn54lnamlzz";
|
sha256 = "13h8dxrrgqa1g6sd7aaw26779hcsqsyjm7xm0sknifn54lnamlzz";
|
||||||
};
|
};
|
||||||
|
|
||||||
preferLocalBuild = true;
|
minecraft-server_1_13_1 = common {
|
||||||
|
version = "1.13.1";
|
||||||
installPhase = ''
|
url = "https://launcher.mojang.com/mc/game/1.13.1/server/fe123682e9cb30031eae351764f653500b7396c9/server.jar";
|
||||||
mkdir -p $out/bin $out/lib/minecraft
|
sha256 = "1lak29b7dm0w1cmzjn9gyix6qkszwg8xgb20hci2ki2ifrz099if";
|
||||||
cp -v $src $out/lib/minecraft/server.jar
|
|
||||||
|
|
||||||
cat > $out/bin/minecraft-server << EOF
|
|
||||||
#!/bin/sh
|
|
||||||
exec ${jre}/bin/java \$@ -jar $out/lib/minecraft/server.jar nogui
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod +x $out/bin/minecraft-server
|
|
||||||
'';
|
|
||||||
|
|
||||||
phases = "installPhase";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Minecraft Server";
|
|
||||||
homepage = "https://minecraft.net";
|
|
||||||
license = stdenv.lib.licenses.unfreeRedistributable;
|
|
||||||
platforms = stdenv.lib.platforms.unix;
|
|
||||||
maintainers = [ stdenv.lib.maintainers.thoughtpolice stdenv.lib.maintainers.tomberek ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
minecraft-server_1_13_0 = common {
|
||||||
|
version = "1.13.0";
|
||||||
|
url = "https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar";
|
||||||
|
sha256 = "1fahqnylxzbvc0fdsqk0x15z40mcc5b7shrckab1qcsdj0kkjvz7";
|
||||||
|
};
|
||||||
|
|
||||||
|
minecraft-server_1_12_2 = common {
|
||||||
|
version = "1.12.2";
|
||||||
|
url = "https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar";
|
||||||
|
sha256 = "0zhnac6yvkdgdaag0gb0fgrkgizbwrpf7s76yqdiknfswrs947zy";
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20770,7 +20770,13 @@ in
|
||||||
|
|
||||||
minecraft = callPackage ../games/minecraft { };
|
minecraft = callPackage ../games/minecraft { };
|
||||||
|
|
||||||
minecraft-server = callPackage ../games/minecraft-server { };
|
minecraft-server = minecraft-server_1_13_2;
|
||||||
|
|
||||||
|
inherit (callPackages ../games/minecraft-server { })
|
||||||
|
minecraft-server_1_13_2
|
||||||
|
minecraft-server_1_13_1
|
||||||
|
minecraft-server_1_13_0
|
||||||
|
minecraft-server_1_12_2;
|
||||||
|
|
||||||
moon-buggy = callPackage ../games/moon-buggy {};
|
moon-buggy = callPackage ../games/moon-buggy {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue