terracotta: add updateScript

This commit is contained in:
Moraxyc
2025-11-02 13:41:31 +08:00
parent f003fc3861
commit b754906e71
+3
View File
@@ -6,6 +6,7 @@
easytier,
replaceVars,
imagemagick,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -89,6 +90,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
--replace-fail '@TERRACOTTA_BIN@' "$out/bin/terracotta"
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
meta = {
description = "Terracotta provides out-of-the-box multiplayer support for Minecraft";
homepage = "https://github.com/burningtnt/Terracotta";