mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Attempt to make Forge install succeed for newer MC server versions
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
c76c746dce
commit
c949d4638a
|
@ -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 <<EOF
|
||||
#!$(which sh)
|
||||
|
||||
echo "cd \$PWD && 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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue