From c949d4638a89db8ee548d0a49dd8bdb860b3abcd Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 27 Jul 2023 21:05:20 +0200 Subject: [PATCH] Attempt to make Forge install succeed for newer MC server versions Signed-off-by: Magic_RB --- nixng/modules/minecraft-forge.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nixng/modules/minecraft-forge.nix b/nixng/modules/minecraft-forge.nix index 7caeace..7581bcb 100644 --- a/nixng/modules/minecraft-forge.nix +++ b/nixng/modules/minecraft-forge.nix @@ -71,9 +71,15 @@ in ''; installPhase = '' - mkdir bin - ln -s ${pkgs.writeShellScript "noop" ''echo "cd $PWD ; java $@" > install-forge''} bin/java - export PATH=$PWD/bin:$PATH + mkdir ebin $out + + cat > ebin/java < install-forge + EOF + chmod +x ebin/java + export PATH=$PWD/ebin:$PATH ./modpacks.ch ${toString cfg.modpackId} ${toString cfg.versionId} --nojava --path $out --verbose '';