From 205e805d51eecde255764e03d329839ea9baacae Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 23 Jul 2022 16:14:39 -0700 Subject: steam: Add extraArgs to prepend arguments to Steam The steam launcher script in SteamOS 3 always prepends `-steamdeck` to ensure the correct client version is used. This argument enables us to replicate the setup in NixOS. --- pkgs/games/steam/fhsenv.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/games/steam') diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 78877c8b0d8a..8ad1600701d5 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -3,6 +3,7 @@ , extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs , extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs , extraProfile ? "" # string to append to profile +, extraArgs ? "" # arguments to always pass to steam , runtimeOnly ? false , runtimeShell , stdenv @@ -258,7 +259,7 @@ in buildFHSUserEnv rec { ${exportLDPath} ${fixBootstrap} - exec steam "$@" + exec steam ${extraArgs} "$@" ''; inherit (steam) meta; -- cgit 1.4.1