diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index 8220e24147ed..7ebd07752920 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -4,7 +4,7 @@ buildFHSUserEnv { name = "steam"; targetPkgs = pkgs: - [ pkgs.steam + [ pkgs.steamOriginal pkgs.corefonts pkgs.curl pkgs.dbus diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 123d7164862a..37b5f45412b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12153,9 +12153,17 @@ let stardust = callPackage ../games/stardust {}; - steam = callPackage ../games/steam {}; + steamOriginal = callPackage ../games/steam { }; - steamChrootEnv = callPackage ../games/steam/chrootenv.nix { }; + steam = callPackage ../games/steam/chrootenv.nix { }; + + steamChrootEnv = steam.overrideDerivation (args: { + buildCommand = '' + ${args.buildCommand} + echo >&2 "'steamChrootEnv' is replaced with 'steam' now" + echo >&2 "You now need just to run 'steam' without root rights" + ''; + }); stuntrally = callPackage ../games/stuntrally { };