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