diff --git a/pkgs/games/terraria-server/default.nix b/pkgs/games/terraria-server/default.nix index c766874224eb..c1e48f259d79 100644 --- a/pkgs/games/terraria-server/default.nix +++ b/pkgs/games/terraria-server/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, file, fetchurl, autoPatchelfHook, unzip }: +{ lib +, stdenv +, fetchurl + +, autoPatchelfHook +, unzip +, zlib +}: stdenv.mkDerivation rec { pname = "terraria-server"; @@ -10,8 +17,8 @@ stdenv.mkDerivation rec { sha256 = "sha256-Mk+5s9OlkyTLXZYVT0+8Qcjy2Sb5uy2hcC8CML0biNY="; }; - buildInputs = [ file stdenv.cc.cc.libgcc ]; nativeBuildInputs = [ autoPatchelfHook unzip ]; + buildInputs = [ stdenv.cc.cc.libgcc zlib ]; installPhase = '' runHook preInstall @@ -29,6 +36,7 @@ stdenv.mkDerivation rec { description = "Dedicated server for Terraria, a 2D action-adventure sandbox"; platforms = [ "x86_64-linux" ]; license = licenses.unfree; - maintainers = with maintainers; [ ncfavier ]; + mainProgram = "TerrariaServer"; + maintainers = with maintainers; [ ncfavier tomasajt ]; }; }