mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
steam: add optional extraProfile
This commit is contained in:
parent
b3e7923b94
commit
0edad9f5c8
|
@ -3,6 +3,7 @@
|
|||
, withJava ? false
|
||||
, withPrimus ? false
|
||||
, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
|
||||
, extraProfile ? "" # string to append to profile
|
||||
, nativeOnly ? false
|
||||
, runtimeOnly ? false
|
||||
}:
|
||||
|
@ -178,7 +179,7 @@ in buildFHSUserEnv rec {
|
|||
|
||||
profile = ''
|
||||
export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"}
|
||||
'';
|
||||
'' + extraProfile;
|
||||
|
||||
runScript = writeScript "steam-wrapper.sh" ''
|
||||
#!${stdenv.shell}
|
||||
|
|
Loading…
Reference in a new issue