3
0
Fork 0
forked from mirrors/nixpkgs

steam: fix error message on unsupported arch

This commit is contained in:
Weijia Wang 2023-04-22 23:53:39 +03:00
parent 043ee4bc81
commit db9eda0945

View file

@ -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