steamPackages.steamcmd: add mainProgram, fix fetch url to use an archive (#312753)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
diniamo 2024-06-05 01:35:39 +02:00 committed by GitHub
parent 81658cb9a9
commit eb042ccd8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 ];