terraria-server: update source URL (#132801)

The old URL redirects to the main page.

authored by Naïm Favier and committed by GitHub da23d345 40e993b6

+7 -3
+7 -3
pkgs/games/terraria-server/default.nix
··· 6 6 urlVersion = lib.replaceChars [ "." ] [ "" ] version; 7 7 8 8 src = fetchurl { 9 - url = "https://terraria.org/system/dedicated_servers/archives/000/000/046/original/terraria-server-${urlVersion}.zip"; 9 + url = "https://terraria.org/api/download/pc-dedicated-server/terraria-server-${urlVersion}.zip"; 10 10 sha256 = "0qm4pbm1d9gax47fk4zhw9rcxvajxs36w7dghirli89i994r7g8j"; 11 11 }; 12 12 ··· 14 14 nativeBuildInputs = [ autoPatchelfHook unzip ]; 15 15 16 16 installPhase = '' 17 + runHook preInstall 18 + 17 19 mkdir -p $out/bin 18 20 cp -r Linux $out/ 19 21 chmod +x "$out/Linux/TerrariaServer.bin.x86_64" 20 22 ln -s "$out/Linux/TerrariaServer.bin.x86_64" $out/bin/TerrariaServer 23 + 24 + runHook postInstall 21 25 ''; 22 26 23 27 meta = with lib; { 24 28 homepage = "https://terraria.org"; 25 - description = 26 - "Dedicated server for Terraria, a 2D action-adventure sandbox"; 29 + description = "Dedicated server for Terraria, a 2D action-adventure sandbox"; 27 30 platforms = [ "x86_64-linux" ]; 28 31 license = licenses.unfree; 32 + maintainers = with maintainers; [ ncfavier ]; 29 33 }; 30 34 }