about summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2022-07-23 16:14:39 -0700
committerWinter <winter@winter.cafe>2022-10-10 19:34:20 -0400
commit205e805d51eecde255764e03d329839ea9baacae (patch)
tree9ab47cf1b721c89b49e5c1ce579afbc50ffaf419 /pkgs/games/steam
parentcf7f4393f3f953faf5765c7a0168c6710baa1423 (diff)
downloadnixlib-205e805d51eecde255764e03d329839ea9baacae.tar
nixlib-205e805d51eecde255764e03d329839ea9baacae.tar.gz
nixlib-205e805d51eecde255764e03d329839ea9baacae.tar.bz2
nixlib-205e805d51eecde255764e03d329839ea9baacae.tar.lz
nixlib-205e805d51eecde255764e03d329839ea9baacae.tar.xz
nixlib-205e805d51eecde255764e03d329839ea9baacae.tar.zst
nixlib-205e805d51eecde255764e03d329839ea9baacae.zip
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.
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r--pkgs/games/steam/fhsenv.nix3
1 files changed, 2 insertions, 1 deletions
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;