mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
steam: copy ldconfig instead of symlinking
Somehow this unconfuses srt-runtime-tools enough for it to actually work consistently. Fixes #505824.
This commit is contained in:
parent
cc828f0ae6
commit
1ac8d551a9
1 changed files with 7 additions and 6 deletions
|
|
@ -56,12 +56,6 @@ let
|
|||
xz
|
||||
zenity
|
||||
|
||||
# Steam expects it to be /sbin specifically
|
||||
(pkgs.runCommand "sbin-ldconfig" { } ''
|
||||
mkdir -p $out/sbin
|
||||
ln -s /bin/ldconfig $out/sbin/ldconfig
|
||||
'')
|
||||
|
||||
# crashes on startup if it can't find libx11 locale files
|
||||
(pkgs.runCommand "xorg-locale" { } ''
|
||||
mkdir -p $out
|
||||
|
|
@ -133,6 +127,13 @@ let
|
|||
|
||||
inherit extraPreBwrapCmds;
|
||||
|
||||
# Steam expects /sbin/ldconfig to exist, and since SinceRT3
|
||||
# symlinking it results in a symlink loop in nested containers.
|
||||
# Thus, just copy it.
|
||||
extraBuildCommands = ''
|
||||
cp -f $out/usr/{bin,sbin}/ldconfig
|
||||
'';
|
||||
|
||||
extraBwrapArgs = [
|
||||
# Steam will dump crash reports here, make those more accessible
|
||||
"--bind-try /tmp/dumps /tmp/dumps"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue