2020-05-08 06:31:00 +00:00
|
|
|
{ stdenv, steamArch, fetchurl, }:
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2020-05-08 06:31:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-08 07:32:02 +00:00
|
|
|
|
2020-05-08 06:31:00 +00:00
|
|
|
name = "steam-runtime";
|
|
|
|
# from https://repo.steampowered.com/steamrt-images-scout/snapshots/
|
|
|
|
version = "0.20200417.0";
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2020-05-08 07:32:02 +00:00
|
|
|
src =
|
|
|
|
if steamArch == "amd64" then 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";
|
|
|
|
} else fetchurl {
|
|
|
|
url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/com.valvesoftware.SteamRuntime.Platform-i386-scout-runtime.tar.gz";
|
|
|
|
sha256 = "03fhac1r25xf7ia2pd35wjw360v5pa9h4870yrhhygp9h7v4klzf";
|
|
|
|
name = "scout-runtime-i386-${version}.tar.gz";
|
|
|
|
};
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2015-10-20 14:08:44 +00:00
|
|
|
buildCommand = ''
|
2015-08-06 17:06:38 +00:00
|
|
|
mkdir -p $out
|
2020-05-08 06:31:00 +00:00
|
|
|
tar -C $out -x --strip=1 -f $src files/
|
2015-08-06 17:06:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The official runtime used by Steam";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ValveSoftware/steam-runtime";
|
2015-10-20 14:08:44 +00:00
|
|
|
license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
|
|
|
|
maintainers = with maintainers; [ hrdinka abbradar ];
|
2015-08-06 17:06:38 +00:00
|
|
|
};
|
|
|
|
}
|