From 8bd79c24dbf19b9bc2a369188c7b3a3301e134f5 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Fri, 24 Jul 2020 15:46:04 +0200 Subject: [PATCH] remove minecraft-server --- default.nix | 2 -- pkgs/minecraft-server/default.nix | 35 ------------------------------- 2 files changed, 37 deletions(-) delete mode 100644 pkgs/minecraft-server/default.nix diff --git a/default.nix b/default.nix index 83596ab..d35007d 100644 --- a/default.nix +++ b/default.nix @@ -22,6 +22,4 @@ self: super: shinto-cli = super.callPackage ./pkgs/shinto-cli { }; ui = super.callPackage ./pkgs/nim-packages/ui.nix { }; - - minecraft-server = super.callPackage ./pkgs/minecraft-server/default.nix { }; } diff --git a/pkgs/minecraft-server/default.nix b/pkgs/minecraft-server/default.nix deleted file mode 100644 index 956fbdf..0000000 --- a/pkgs/minecraft-server/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ stdenv, fetchurl, jre_headless }: -stdenv.mkDerivation { - pname = "minecraft-server"; - version = "1.15.2"; - - src = fetchurl { - url = - "https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar"; - sha256 = "12kynrpxgcdg8x12wcvwkxka0fxgm5siqg8qq0nnmv0443f8dkw0"; - }; - - 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_headless}/bin/java \$@ -jar $out/lib/minecraft/server.jar nogui - EOF - - chmod +x $out/bin/minecraft-server - ''; - - phases = "installPhase"; - - meta = with stdenv.lib; { - description = "Minecraft Server"; - homepage = "https://minecraft.net"; - license = licenses.unfreeRedistributable; - platforms = platforms.unix; - maintainers = with maintainers; [ thoughtpolice tomberek costrouc ]; - }; -}