1 { lib, stdenv, fetchurl, steam-run, bash, coreutils
2 , steamRoot ? "~/.local/share/Steam"
7 version = "20180104"; # According to steamcmd_linux.tar.gz mtime
10 url = "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz";
11 sha256 = "0z0y0zqvhydmfc9y9vg5am0vz7m3gbj4l2dwlrfz936hpx301gyf";
14 # The source tarball does not have a single top-level directory.
21 buildInputs = [ bash steam-run ];
26 mkdir -p $out/share/steamcmd/linux32
27 install -Dm755 steamcmd.sh $out/share/steamcmd/steamcmd.sh
28 install -Dm755 linux32/* $out/share/steamcmd/linux32
31 substitute ${./steamcmd.sh} $out/bin/steamcmd \
33 --subst-var-by coreutils ${coreutils} \
34 --subst-var-by steamRoot "${steamRoot}" \
35 --subst-var-by steamRun ${steam-run}
36 chmod 0755 $out/bin/steamcmd
40 description = "Steam command-line tools";
41 homepage = "https://developer.valvesoftware.com/wiki/SteamCMD";
42 platforms = platforms.linux;
43 license = licenses.unfreeRedistributable;
44 maintainers = with maintainers; [ tadfisher ];