From 10168a091eb482d0a582da766486176644199137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 19 Feb 2022 15:41:35 +0100 Subject: [PATCH] Use openjdk17 headless instead of openjdk 16 (minecraft requires jdk 17) --- packages/minecraft/paper.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/minecraft/paper.nix b/packages/minecraft/paper.nix index 7ef6a3a3..f8ba1481 100644 --- a/packages/minecraft/paper.nix +++ b/packages/minecraft/paper.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, bash, jre }: +{ lib, stdenv, fetchurl, bash, openjdk17_headless }: let mcVersion = "1.18.1"; buildNum = "204"; @@ -19,7 +19,7 @@ stdenv.mkDerivation { buildPhase = '' cat > minecraft-server << EOF #!${bash}/bin/sh - exec ${jre}/bin/java \$@ -jar $out/share/papermc/papermc.jar nogui + exec ${openjdk17_headless}/bin/java \$@ -jar $out/share/papermc/papermc.jar nogui ''; installPhase = ''