steam: fix opengl inside pressure-vessel

main
ash lea 2 years ago committed by Jonathan Ringer
parent 4d6bee687b
commit 488056a418
  1. 2
      pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix
  2. 3
      pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix

@ -88,6 +88,8 @@ let
/lib32
/usr/lib/i386-linux-gnu
/usr/lib32
/run/opengl-driver/lib
/run/opengl-driver-32/lib
EOF
ldconfig &> /dev/null
'';

@ -50,7 +50,8 @@ let
];
ldconfig = writeShellScriptBin "ldconfig" ''
exec ${pkgs.glibc.bin}/bin/ldconfig -f /etc/ld.so.conf -C /etc/ld.so.cache "$@"
# due to a glibc bug, 64-bit ldconfig complains about patchelf'd 32-bit libraries, so we're using 32-bit ldconfig
exec ${pkgsi686Linux.glibc.bin}/bin/ldconfig -f /etc/ld.so.conf -C /etc/ld.so.cache "$@"
'';
etcProfile = writeText "profile" ''
export PS1='${name}-chrootenv:\u@\h:\w\$ '

Loading…
Cancel
Save