From eb042ccd8d2000c4bfc51351212589491d242a16 Mon Sep 17 00:00:00 2001 From: diniamo <55629891+diniamo@users.noreply.github.com> Date: Wed, 5 Jun 2024 01:35:39 +0200 Subject: [PATCH] steamPackages.steamcmd: add mainProgram, fix fetch url to use an archive (#312753) Co-authored-by: Sandro --- pkgs/games/steam/steamcmd.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/games/steam/steamcmd.nix b/pkgs/games/steam/steamcmd.nix index 1c834f1c2ea6..69d5cd8a7863 100644 --- a/pkgs/games/steam/steamcmd.nix +++ b/pkgs/games/steam/steamcmd.nix @@ -7,8 +7,8 @@ stdenv.mkDerivation { version = "20180104"; # According to steamcmd_linux.tar.gz mtime src = fetchurl { - url = "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"; - sha256 = "0z0y0zqvhydmfc9y9vg5am0vz7m3gbj4l2dwlrfz936hpx301gyf"; + url = "https://web.archive.org/web/20240521141411/https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"; + hash = "sha256-zr8ARr/QjPRdprwJSuR6o56/QVXl7eQTc7V5uPEHHnw="; }; # The source tarball does not have a single top-level directory. @@ -37,8 +37,9 @@ stdenv.mkDerivation { ''; meta = with lib; { - description = "Steam command-line tools"; homepage = "https://developer.valvesoftware.com/wiki/SteamCMD"; + description = "Steam command-line tools"; + mainProgram = "steamcmd"; platforms = platforms.linux; license = licenses.unfreeRedistributable; maintainers = with maintainers; [ tadfisher ];