From 1ac8d551a9e9e5bfa3b04c26b68311fd2435e6b5 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 20 Apr 2026 18:57:32 +0300 Subject: [PATCH] steam: copy ldconfig instead of symlinking Somehow this unconfuses srt-runtime-tools enough for it to actually work consistently. Fixes #505824. --- pkgs/by-name/st/steam/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/st/steam/package.nix b/pkgs/by-name/st/steam/package.nix index 910e4b5aadde..530a0db2fe39 100644 --- a/pkgs/by-name/st/steam/package.nix +++ b/pkgs/by-name/st/steam/package.nix @@ -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"