terraria-server: add mainProgram and small refactor

TomaSajt b80c7a73 e2b5418c

+11 -3
+11 -3
pkgs/games/terraria-server/default.nix
··· 1 - { stdenv, lib, file, fetchurl, autoPatchelfHook, unzip }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + 5 + , autoPatchelfHook 6 + , unzip 7 + , zlib 8 + }: 2 9 3 10 stdenv.mkDerivation rec { 4 11 pname = "terraria-server"; ··· 10 17 sha256 = "sha256-Mk+5s9OlkyTLXZYVT0+8Qcjy2Sb5uy2hcC8CML0biNY="; 11 18 }; 12 19 13 - buildInputs = [ file stdenv.cc.cc.libgcc ]; 14 20 nativeBuildInputs = [ autoPatchelfHook unzip ]; 21 + buildInputs = [ stdenv.cc.cc.libgcc zlib ]; 15 22 16 23 installPhase = '' 17 24 runHook preInstall ··· 29 36 description = "Dedicated server for Terraria, a 2D action-adventure sandbox"; 30 37 platforms = [ "x86_64-linux" ]; 31 38 license = licenses.unfree; 32 - maintainers = with maintainers; [ ncfavier ]; 39 + mainProgram = "TerrariaServer"; 40 + maintainers = with maintainers; [ ncfavier tomasajt ]; 33 41 }; 34 42 }