1 { lib, stdenv, fetchurl
4 , writeShellScript, curl, nix-update
7 stdenv.mkDerivation rec {
9 pname = "steam-runtime";
10 # from https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt
11 version = "0.20220601.1";
14 url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/steam-runtime.tar.xz";
15 sha256 = "sha256-uYauNtbUlvrnATGks7hWy1zt4Y7AEeADrCr1eVylPbY=";
16 name = "scout-runtime-${version}.tar.gz";
21 tar -C $out --strip=1 -x -f $src
25 updateScript = writeShellScript "update.sh" ''
26 version=$(${curl}/bin/curl https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt)
27 ${lib.getExe nix-update} --version "$version" steamPackages.steam-runtime
32 description = "The official runtime used by Steam";
33 homepage = "https://github.com/ValveSoftware/steam-runtime";
34 license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
35 maintainers = with maintainers; [ hrdinka abbradar ];