3
0
Fork 0
forked from mirrors/nixpkgs

minecraft-server: 1.9.4 -> 1.10

This commit is contained in:
Lengyel Balázs 2016-06-25 12:11:08 +02:00
parent 6fd8e5719b
commit d006617dca

View file

@ -2,13 +2,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "minecraft-server-${version}"; name = "minecraft-server-${version}";
version = "1.9.4"; version = "1.10";
src = fetchurl { src = fetchurl {
url = "http://s3.amazonaws.com/Minecraft.Download/versions/${version}/minecraft_server.${version}.jar"; url = "http://s3.amazonaws.com/Minecraft.Download/versions/${version}/minecraft_server.${version}.jar";
sha256 = "1ba0xb0a8vkzpl4r6dkkh4y7sk667m4y5gbyxlads16q22magzhk"; sha256 = "00a204450qy0dkzl47rf0p3di7aa5xj76yshazgxw08aj8pafi6x";
}; };
preferLocalBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/lib/minecraft mkdir -p $out/bin $out/lib/minecraft
cp -v $src $out/lib/minecraft/server.jar cp -v $src $out/lib/minecraft/server.jar