Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 68398d2dd50e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c44acaaceb04
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jan 17, 2021

  1. steam-fhsenv: don't unshare pid

    Some applications such as Natron need access to MIT-SHM or other
    shared memory mechanisms. Unsharing the pid namespace
    breaks the ability for application to reference shared memory.
    Jonathan Ringer committed Jan 17, 2021
    Copy the full SHA
    721ea00 View commit details
  2. steam-run: inherit bwrap namespace settings

    Jonathan Ringer committed Jan 17, 2021
    Copy the full SHA
    c44acaa View commit details
Showing with 7 additions and 0 deletions.
  1. +7 −0 pkgs/games/steam/fhsenv.nix
7 changes: 7 additions & 0 deletions pkgs/games/steam/fhsenv.nix
Original file line number Diff line number Diff line change
@@ -284,12 +284,19 @@ in buildFHSUserEnv rec {
# this fixes certain issues where they don't render correctly
unshareIpc = false;

# Some applications such as Natron need access to MIT-SHM or other
# shared memory mechanisms. Unsharing the pid namespace
# breaks the ability for application to reference shared memory.
unsharePid = false;

passthru.run = buildFHSUserEnv {
name = "steam-run";

targetPkgs = commonTargetPkgs;
inherit multiPkgs extraBuildCommands;

inherit unshareIpc unsharePid;

runScript = writeScript "steam-run" ''
#!${runtimeShell}
run="$1"