refactor(fabric-server): take lock as generate-loader input

This commit is contained in:
Infinidoge 2022-03-03 17:10:14 -05:00
parent 6cafe81380
commit 3afa7f3e44
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,6 @@
{ lib, fetchurl, stdenv, unzip, zip, jre_headless }:
{ lib, fetchurl, stdenv, unzip, zip, jre_headless, lock }:
let
lock = import ./lock.nix;
libraries = lib.forEach lock.libraries fetchurl;
in
stdenv.mkDerivation {
@ -23,7 +22,7 @@ stdenv.mkDerivation {
EOF
cat > fabric-server-launch.properties << EOF
launch.mainClass=net.fabricmc.loader.impl.launch.knot.KnotServer
launch.mainClass=${lock.mainClass}
EOF
'';