Merge pull request #262393 from K900/steam-cleanups

steam: allow setting extraBwrapArgs, remove unshare* options matching defaults

authored by K900 and committed by GitHub c2f9b2e6 c781bd7a

+4 -11
+4 -11
pkgs/games/steam/fhsenv.nix
··· 3 3 , extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs 4 4 , extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs 5 5 , extraProfile ? "" # string to append to profile 6 + , extraBwrapArgs ? [ ] # extra arguments to pass to bubblewrap 6 7 , extraArgs ? "" # arguments to always pass to steam 7 8 , extraEnv ? { } # Environment variables to pass to Steam 8 9 , withGameSpecificLibraries ? true # include game specific libraries ··· 277 278 exec steam ${extraArgs} "$@" 278 279 ''; 279 280 281 + inherit extraBwrapArgs; 282 + 280 283 meta = 281 284 if steam != null 282 285 then ··· 287 290 description = "Steam dependencies (dummy package, do not use)"; 288 291 }; 289 292 290 - # allows for some gui applications to share IPC 291 - # this fixes certain issues where they don't render correctly 292 - unshareIpc = false; 293 - 294 - # Some applications such as Natron need access to MIT-SHM or other 295 - # shared memory mechanisms. Unsharing the pid namespace 296 - # breaks the ability for application to reference shared memory. 297 - unsharePid = false; 298 - 299 293 passthru.run = buildFHSEnv { 300 294 name = "steam-run"; 301 295 302 296 targetPkgs = commonTargetPkgs; 303 - inherit multiArch multiPkgs profile extraInstallCommands; 304 - inherit unshareIpc unsharePid; 297 + inherit multiArch multiPkgs profile extraInstallCommands extraBwrapArgs; 305 298 306 299 runScript = writeShellScript "steam-run" '' 307 300 run="$1"