Steam game wants libatspi.so; how to fix this properly?

A game I’d like to play (CrossCode) doesn’t start using Steam out of the box, complaining of a missing libatspi.so.0. I was able to fix that by:

  • nix-build -A at-spi2-core '<nixpkgs>' (which, say, installs into $directory-for-libatspi/lib)
  • Setting the game’s launch options to LD_LIBRARY_PATH="$directory-for-libatspi/lib:$LD_LIBRARY_PATH" %command%

However, this doesn’t seem like a permanent or smart fix. How do I improve on that? Is it a fix for the Steam package in nixpkgs? I’d imagine it already includes some well-known .so files in its environment.

1 Like

Sounds like you should override steam-run to include this in buildInputs

1 Like

please make an issue on github, and we can remedy this for all

actually, i just went ahead and made a PR steam.chroot: add at-spi2-core by jonringer · Pull Request #76686 · NixOS/nixpkgs · GitHub

3 Likes

Thanks very much @jonringer!

1 Like