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