Games: Difference between revisions

From NixOS Wiki
imported>DamienCassou
m Links to game platforms
imported>Loewenheim
Instructions for getting Renowned Explorers to work with steam-run.
Line 22: Line 22:
| I could play a few levels without problem
| I could play a few levels without problem
|}
|}
=== Renowned Explorers: International Society ===
Tested with version <code>renowned_explorers_international_society_522_26056.sh</code> from gog.com. It can be played with <code>steam-run</code>, but it needs some libraries that are not normally included in Steam's FHS environment. One way to solve this is to add an overlay:
<syntaxHighlight>
  nixpkgs.overlays = [
    (self: super: {
      steam-run = (super.steam.override {
        extraLibraries = pkgs: with pkgs;
          [
            libxkbcommon
            mesa
            wayland
            (sndio.overrideAttrs (old: {
              postFixup = old.postFixup + ''
                ln -s $out/lib/libsndio.so $out/lib/libsndio.so.6.1
              '';
            }))
          ];
      }).run;
    })
  ];
</syntaxHighlight>
Adding <code>libxkbcommon</code>, <code>mesa</code>, and <code>wayland</code> is straightforward. The game expects the shared library <code>sdnio.so.6.1</code> to exist, so we need to create a symbolic link after the installation of <code>sndio</code>.

Revision as of 21:11, 28 August 2020

This page lists games and reports on their successful execution on NixOS.

Specific execution mode information can be found on these dedicated pages:


List of games

HB=humblebundle.com, Gog=gog.com
Name Version Mode Note
Braid BraidSetup-2015-06-11.sh (HB) native's steam-run I could play a few levels without problem

Renowned Explorers: International Society

Tested with version renowned_explorers_international_society_522_26056.sh from gog.com. It can be played with steam-run, but it needs some libraries that are not normally included in Steam's FHS environment. One way to solve this is to add an overlay:

  nixpkgs.overlays = [
    (self: super: {
      steam-run = (super.steam.override {
        extraLibraries = pkgs: with pkgs;
          [
            libxkbcommon
            mesa
            wayland
            (sndio.overrideAttrs (old: {
              postFixup = old.postFixup + ''
                ln -s $out/lib/libsndio.so $out/lib/libsndio.so.6.1
              '';
            }))
          ];
      }).run;
    })
  ];

Adding libxkbcommon, mesa, and wayland is straightforward. The game expects the shared library sdnio.so.6.1 to exist, so we need to create a symbolic link after the installation of sndio.