3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Zhaofeng Li 2022-07-23 16:14:39 -07:00 committed by Winter
parent cf7f4393f3
commit 205e805d51

View file

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