diff options
author | Euan Kemp <euank@euank.com> | 2020-05-08 00:32:02 -0700 |
---|---|---|
committer | Euan Kemp <euank@euank.com> | 2020-05-08 00:32:02 -0700 |
commit | 870954a1da12bed63b6c7c53c8fec386fff9becb (patch) | |
tree | ef21f2ee2d784cf5ed80b91c6c58f631402f805c /pkgs/games/steam/runtime.nix | |
parent | 593c28b88617241a5ca69986a6aa5f57581e247a (diff) |
steam: add back steamArch support
Diffstat (limited to 'pkgs/games/steam/runtime.nix')
-rw-r--r-- | pkgs/games/steam/runtime.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/games/steam/runtime.nix b/pkgs/games/steam/runtime.nix index e568d74e62d0..44d80c0d7948 100644 --- a/pkgs/games/steam/runtime.nix +++ b/pkgs/games/steam/runtime.nix @@ -1,15 +1,21 @@ { 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"; - }; + 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"; + }; buildCommand = '' mkdir -p $out |