From b80c7a7358519195bd9bd4bcaed320203bb2a891 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Tue, 22 Aug 2023 23:16:33 +0200 Subject: [PATCH] terraria-server: add mainProgram and small refactor --- pkgs/games/terraria-server/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 ]; }; }