From db9eda0945fef849a48491c9c5fea76a6d9065c8 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 22 Apr 2023 23:53:39 +0300 Subject: [PATCH] steam: fix error message on unsupported arch --- pkgs/games/steam/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/games/steam/default.nix b/pkgs/games/steam/default.nix index 538a66dcfd74..a304f18f5bf6 100644 --- a/pkgs/games/steam/default.nix +++ b/pkgs/games/steam/default.nix @@ -1,5 +1,5 @@ { makeScopeWithSplicing, generateSplicesForMkScope -, stdenv, buildFHSEnv, pkgsi686Linux +, stdenv, buildFHSEnv, pkgsi686Linux, glxinfo }: let @@ -14,7 +14,10 @@ let steam-runtime-wrapped = callPackage ./runtime-wrapped.nix { }; steam = callPackage ./steam.nix { }; steam-fhsenv = callPackage ./fhsenv.nix { - glxinfo-i686 = pkgsi686Linux.glxinfo; + glxinfo-i686 = + if self.steamArch == "amd64" + then pkgsi686Linux.glxinfo + else glxinfo; steam-runtime-wrapped-i686 = if self.steamArch == "amd64" then pkgsi686Linux.steamPackages.steam-runtime-wrapped