Files
nixpkgs/pkgs/by-name/ts/tshock/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildDotnetModule,
dotnet-sdk_6,
dotnet-runtime_6,
}:
buildDotnetModule rec {
pname = "tshock";
version = "5.2.3";
src = fetchFromGitHub {
owner = "Pryaxis";
repo = "TShock";
rev = "v${version}";
sha256 = "sha256-1EtHpBZ7bbwVbl+tMfwpjgPuxu98XKvxlZ2+SbUlWV4=";
fetchSubmodules = true;
};
dotnet-sdk = dotnet-sdk_6;
dotnet-runtime = dotnet-runtime_6;
executables = [ "TShock.Server" ];
projectFile = [
"TShockAPI/TShockAPI.csproj"
"TerrariaServerAPI/TerrariaServerAPI/TerrariaServerAPI.csproj"
"TShockLauncher/TShockLauncher.csproj"
"TShockInstaller/TShockInstaller.csproj"
"TShockPluginManager/TShockPluginManager.csproj"
]; # Excluding tests because they can't build for some reason
doCheck = false; # The same.
nugetSource = "https://api.nuget.org/v3/index.json";
nugetDeps = ./deps.json;
meta = with lib; {
homepage = "https://github.com/Pryaxis/TShock";
description = "Modded server software for Terraria, providing a plugin system and inbuilt tools such as anti-cheat, server-side characters, groups, permissions, and item bans";
license = licenses.gpl3Only;
maintainers = [ maintainers.proggerx ];
mainProgram = "TShock.Server";
};
}