Merge pull request #41432 from ajs124/steam_profile_override
steam: add optional extraProfile
This commit is contained in:
commit
1786883011
@ -3,6 +3,7 @@
|
|||||||
, withJava ? false
|
, withJava ? false
|
||||||
, withPrimus ? false
|
, withPrimus ? false
|
||||||
, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
|
, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
|
||||||
|
, extraProfile ? "" # string to append to profile
|
||||||
, nativeOnly ? false
|
, nativeOnly ? false
|
||||||
, runtimeOnly ? false
|
, runtimeOnly ? false
|
||||||
}:
|
}:
|
||||||
@ -178,7 +179,7 @@ in buildFHSUserEnv rec {
|
|||||||
|
|
||||||
profile = ''
|
profile = ''
|
||||||
export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"}
|
export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"}
|
||||||
'';
|
'' + extraProfile;
|
||||||
|
|
||||||
runScript = writeScript "steam-wrapper.sh" ''
|
runScript = writeScript "steam-wrapper.sh" ''
|
||||||
#!${stdenv.shell}
|
#!${stdenv.shell}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user