Games: Difference between revisions

From NixOS Wiki
mNo edit summary
Klinger (talk | contribs)
fully rewrite of article, because it was too old. Renowened Explorers is still there, I didnt check it, whether it still is useful information.
Line 1: Line 1:
{{outdated|This page is a outdated and contains no valuable information. Please help expanding it.}}
== Games starter ==
This page lists games and reports on their successful execution on NixOS.
Games can be run by different applications. Some are able to include libraries from different plattforms.
 
Specific execution mode information can be found on these dedicated pages:
* [[Steam]]
* [[Playstation2]]
* [[RetroArch]]
 
 
== List of games ==
 
 
{| class="wikitable"
{| class="wikitable"
|+ HB=[https://www.humblebundle.com/ humblebundle.com], Gog=[https://www.gog.com/ gog.com]
|+
!Application
!Platform
!Remarks
|-
|[[Steam]]
|Steam
|Windows games work fine. Linux games are often incompatible due to how NixOS works.
|-
|-
! scope="col" | Name
|[[Lutris]]
! scope="col" | Version
|GOG, Humble Bundle, Epic, EA App, Ubisoft Connect, Steam, Flatpak, Wine
! scope="col" | Mode
|
! scope="col" | Note
|-
|-
! scope="row"| Braid
|[[Heroic]]
| BraidSetup-2015-06-11.sh (HB)
|Epic, GOG, Prime Gaming, Wine
| [[Steam#FHS environment only|steam-run-native]]
|
| I could play a few levels without problem
|-
|-
! scope="row"| Project Hospital
|[[Wine]]
| project_hospital_1_2_21186_40814.sh (Gog)
|Windows applications/games
| [[Steam#FHS environment only|steam-run-native]]
|often easier to use Lutris install scripts for wine applications/games
| Everything is OK
|-
|-
! scope="row"| State of Mind
|nixpgs
| 1.2.24280
|Linux games
| [[Steam|Pure Steam]]
|There are several games in nixpgs. You can install them directly, e.g. vintagestory, flightgear, lots of racing games.
| Everything is OK
|-
|-
! scope="row"| Vintage Story
|[[Dosbox]]
| vs_client_linux-x64_1.19.3.tar.gz
|DOS applications/games
| [[Steam#FHS environment only|steam-run-native]]
|
| <syntaxhighlight lang="sh">steam-run dotnet Vintagestory.dll</syntaxhighlight>
|}
|}


== List of games ==
=== Renowned Explorers: International Society ===
=== 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:
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:
Line 64: Line 58:




[[Category:Software]]
[[Category:Gaming]]
[[Category:Applications]]

Revision as of 16:59, 19 April 2024

Games starter

Games can be run by different applications. Some are able to include libraries from different plattforms.

Application Platform Remarks
Steam Steam Windows games work fine. Linux games are often incompatible due to how NixOS works.
Lutris GOG, Humble Bundle, Epic, EA App, Ubisoft Connect, Steam, Flatpak, Wine
Heroic Epic, GOG, Prime Gaming, Wine
Wine Windows applications/games often easier to use Lutris install scripts for wine applications/games
nixpgs Linux games There are several games in nixpgs. You can install them directly, e.g. vintagestory, flightgear, lots of racing games.
Dosbox DOS applications/games


List of games

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.