nixpkgs/pkgs/games/steam/runtime.nix
Euan Kemp 593c28b886 steam: switch to the newer steam-runtime packaging
Valve has started releasing tarballs of the steam runtime. It seems a
lot easier to download and extract a single tarball than to download a
buncha debs, extract them, and splat em around a bit.

Let's just use the runtime they build. It's a buncha random binary
packages anyway.

Also, the download url for their debs broke, so there's that too.
2020-05-08 00:18:59 -07:00

26 lines
862 B
Nix

{ stdenv, steamArch, fetchurl, }:
stdenv.mkDerivation rec {
name = "steam-runtime";
# from https://repo.steampowered.com/steamrt-images-scout/snapshots/
version = "0.20200417.0";
src = fetchurl {
url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/com.valvesoftware.SteamRuntime.Platform-amd64,i386-scout-runtime.tar.gz";
sha256 = "0kps8i5v23sycqm69xz389n8k831jd7ncsmlrkky7nib2q91rbvj";
name = "scout-runtime-${version}.tar.gz";
};
buildCommand = ''
mkdir -p $out
tar -C $out -x --strip=1 -f $src files/
'';
meta = with stdenv.lib; {
description = "The official runtime used by Steam";
homepage = "https://github.com/ValveSoftware/steam-runtime";
license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
maintainers = with maintainers; [ hrdinka abbradar ];
};
}