Gaming: Difference between revisions

Arborodin (talk | contribs)
general reformat of the page
Arborodin (talk | contribs)
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:


== Game launchers ==
== Emulating and launchers ==
 
Games can be run by different applications. Some are able to include libraries from different platforms.
Games can be run by different applications. Some are able to include libraries from different platforms.
{| class="wikitable sortable"
{| class="wikitable sortable"
|+
|+
!Application
! scope="col" | Application
!Platform
! scope="col" | Platform
!Remarks
! scope="col" | Description
! scope="col" | nixpkgs
|-
|-
|[[Steam]]
| [[Steam]]
|Steam
| Steam
|Stable support for Windows games. Linux games often incompatible due to interoperating differences.
| Stable support for Windows games. Linux games often incompatible due to interoperating differences.
| <code>steam</code> <code>steam-run</code> <code>steam-runtime</code> <code>steam-original</code> <code>steam-unwrapped</code> <code>steam-small</code>
|-
|-
|[[Lutris]]
| [[Lutris]]
|Epic Games, EA App, Flatpak, GOG, Humble Bundle, Steam, Ubisoft Connect, Wine
| Epic Games, EA App, Flatpak, GOG, Humble Bundle, Steam, Ubisoft Connect, Wine
|
|
| <code>lutris</code> <code>lutris-free</code> <code>lutris-unwrapped</code>
|-
| [https://github.com/legendary-gl/legendary Legendary] & [https://github.com/RareDevs/Rare Rare]
| Epic Games
| Rare is a GUI for Legendary.
| <code>legendary-gl</code> <code>rare</code>
|-
|-
|[[Heroic Games Launcher|Heroic]]
| [[Heroic Games Launcher|Heroic]]
|Epic Games, GOG, Prime Gaming, Wine
| Epic Games, GOG, Prime Gaming, Wine
|Supports gamepad navigation. Unlike Lutris, uses open-source Legendary for Epic Games.
| Supports gamepad navigation. Uses Legendary unlike Lutris.
| <code>heroic</code> <code>heroic-unwrapped</code>
|-
|-
|PPSSPP
| Itch.io
|PSP emulation
| Itch.io
|
|
| <code>itch</code>
|-
|-
|RPCS3
| PPSSPP
|PS3 emulation
| PSP emulation
|Contains unfree blobs (PS3 firmware).
|
| <code>ppsspp</code>
|-
|-
|[[Wine]]
| [[Playstation2|PCSX2]]
|Windows emulation
| PS2 emulation
|often easier to use Lutris install scripts for wine applications/games
|
|
|-
|-
|Dosbox
| RPCS3
|DOS emulation
| PS3 emulation
| Contains unfree blobs (PS3 firmware).
| <code>rpcs3</code>
|-
| [[RetroArch]]
| Retro games emulation
|
|
|
|-
| [[Wine]] & [[Bottles]]
| Windows emulation and software management
|
| <code>wineWow64Packages</code> <code>winetricks</code> <code>bottles</code>
|-
|-
|nixpgs
| Dosbox
|Linux games
| DOS emulation
|
|
| <code>dosbox</code>
|-
|-
|}
|}


== List of NixOS supported games ==
== List of games in Nixpkgs ==
 
{| class="wikitable sortable"
{| class="wikitable sortable"
|+
|+
!Name
! scope="col" | Name
!Category
! scope="col" | Category
!nixpkg status
! scope="col" | Description
!Short Description
! scope="col" | nixpkgs
|-
| [https://play0ad.com/ 0 A.D.]
| Strategy, Historical
| Historical real-time strategy game.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/0ad/default.nix available]
|-
| [https://www.armagetronad.org/ Armagetron Advanced]
| Arcade, Racing
| A multiplayer Tron-like lightcycle racing game.
| [https://github.com/NixOS/nixpkgs/pull/263675 available]
|-
| [https://www.wesnoth.org/ Battle for Wesnoth]
| Strategy, Turn-based
| Turn-based strategy game with fantasy themes.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/wesnoth/default.nix available]
|-
| [https://cataclysmdda.org/ Cataclysm: Dark Days Ahead]
| Survival, Rogue-like
| Post-apocalyptic survival game.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/cataclysm-dda/default.nix available]
|-
| [https://chromium-bsu.sourceforge.io/ Chromium B.S.U.]
| Arcade, Space Shooter
| Fast paced, arcade-style, top-scrolling space shooter.
| available
|-
|-
|[https://www.thedarkmod.com/main/ The Dark Mod]
| [https://crawl.develz.org/ Dungeon Crawl]
|Stealth, FPS
| Rogue-like, Adventure, Turn-based
|[https://github.com/NixOS/nixpkgs/pull/356578 pending pull request]
| Open-source, single-player, role-playing roguelike game.
|Stealth game inspired by the Thief series.
| available
|-
|-
|[https://endless-sky.github.io/ Endless Sky]
| [https://www.bay12games.com/dwarves/ Dwarf Fortress]
|Space simulation, RPG
| Simulation, Management, Rogue-like, Sandbox
|In nixpkgs
| Single-player fantasy game with a randomly generated adventure world.
|Explore a universe with different factions and ships.
| available
|-
|-
|[https://www.veloren.net/ Veloren]
| [https://endless-sky.github.io/ Endless Sky]
|RPG, Sandbox
| Space simulation, RPG
|In nixpkgs
| Explore a universe with different factions and ships.
|Multiplayer voxel RPG set in a procedurally generated world.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/endless-sky/default.nix available]
|-
|-
|[https://www.armagetronad.org/ Armagetron Advanced]
| [https://freeciv.org/ FreeCiv]
|Arcade, Racing
| Strategy, Turn-based
|In nixpkgs
| Civilization-building strategy game.
|A multiplayer Tron-like lightcycle racing game.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/freeciv/default.nix available]
|-
|-
|[https://play0ad.com/ 0 A.D.]
| [https://www.gnu.org/software/freedink/ FreeDink]
|Strategy, Historical
| Adventure, RPG
|In nixpkgs
| Free, portable and enhanced version of the Dink Smallwood game engine.
|Historical real-time strategy game.
| available
|-
|-
|[https://supertuxkart.net/de/Main_Page SuperTuxKart]
| [https://freedoom.github.io/ FreeDoom]
|Arcade, Racing
| FPS
|In nixpkgs
| Free alternative to the Doom series.
|Kart racing game (like Super Mario Kart) featuring Tux and friends.
| '''''unavailable'''''
|-
|-
|[https://www.openra.net/ OpenRA]
| [https://github.com/ZDoom/gzdoom GZDoom]
|Strategy, RTS
| FPS
|In nixpkgs
| A feature-centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities.
|Open-source implementation of Command & Conquer.
| [https://github.com/NixOS/nixpkgs/tree/nixos-24.05/pkgs/games/doom-ports/gzdoom available]
|-
|-
|[https://freeciv.org/ FreeCiv]
| [https://sourceforge.net/projects/lincity/ LinCity]
|Strategy, Turn-based
| Simulation, Management
|In Nixpkgs
| City simulation game.
|Civilization-building strategy game.
| available
|-
|-
|[https://www.gnu.org/software/freedink/ FreeDink]
| [https://github.com/lincity-ng/lincity-ng LinCity-NG]
|Adventure, RPG
| Simulation, Management
|In Nixpkgs
| City simulation game.
|Free, portable and enhanced version of the Dink Smallwood game engine
| available
|-
|-
|[https://www.openttd.org/ OpenTTD]
| [https://luanti.org Luanti]
|Simulation, Management
| Sandbox
|In nixpkgs
| An open source voxel game engine.
|Business simulation game based on Transport Tycoon Deluxe.
| available
|-
|-
|[https://www.wesnoth.org/ Battle for Wesnoth]
| [https://mindustrygame.github.io/ Mindustry]
|Strategy, Turn-based
| Strategy, Sandbox
|In nixpkgs
| Sandbox tower defense game.
|Turn-based strategy game with fantasy themes.
| [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games/mindustry available]
|-
|-
|[https://freedoom.github.io/ FreeDoom]
| [https://nethack.org/ NetHack]
|FPS
| Rogue-like, RPG
|'''''Not in nixpkgs'''''
| Rogue-like game.
|Free alternative to the Doom series.
| available
|-
|-
|[https://xonotic.org/ Xonotic]
| [https://openmw.org/ OpenMW]
|FPS, Arena shooter
| RPG, Open world, Action-adventure
|In nixpkgs
| Unofficial open source engine reimplementation of the game Morrowind.
|Fast-paced multiplayer shooter.
| available
|-
|-
|[https://sourceforge.net/projects/lincity/ LinCity]
| [https://www.openra.net/ OpenRA]
|Simulation, Management
| Strategy, RTS
|In nixpkgs
| Open-source implementation of Command & Conquer.
|City simulation game
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/openra/default.nix available]
|-
|-
|[https://github.com/lincity-ng/lincity-ng LinCity-NG]
| [https://www.openttd.org/ OpenTTD]
|Simulation, Management
| Simulation, Management
|In nixpkgs
| Business simulation game based on Transport Tycoon Deluxe.
|City simulation game
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/openttd/default.nix available]
|-
|-
|[https://mindustrygame.github.io/ Mindustry]
| [https://shatteredpixel.com/ Shattered Pixel Dungeon]
|Strategy, Sandbox
| Rogue-like, RPG
|In nixpkgs
| Rogue-like dungeon crawler with pixel graphics.
|Sandbox tower defense game.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/shattered-pixel-dungeon/default.nix available]
|-
|-
|[https://nethack.org/ NetHack]
| [https://www.chiark.greenend.org.uk/~sgtatham/puzzles/ Simon Tatham's Portable Puzzle Collection]
|Rogue-like, RPG
| Puzzle
|In nixpkgs
| Simon Tatham's portable puzzle collection.
|Rogue-like game
| available
|-
|-
|[https://cataclysmdda.org/ Cataclysm: Dark Days Ahead]
| [https://www.supertux.org/ Super Tux]
|Survival, Rogue-like
| Platformer, Side-scroller
|In nixpkgs
| Classic 2D jump'n run side-scroller game.
|Post-apocalyptic survival game.
| available
|-
|-
|[https://shatteredpixel.com/ Shattered Pixel Dungeon]
| [https://supertuxkart.net/de/Main_Page SuperTuxKart]
|Rogue-like, RPG
| Arcade, Racing
|In nixpkgs
| Kart racing game (like Super Mario Kart) featuring Tux and friends.
|Rogue-like dungeon crawler with pixel graphics.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/super-tux-kart/default.nix available]
|-
|-
|[https://www.chiark.greenend.org.uk/~sgtatham/puzzles/ Simon Tatham's Portable Puzzle Collection]
| [https://te4.org/ Tales of Maj'Eyal (ToME 4)]
|Puzzle
| Rogue-like, RPG, Turn-based
|In nixpkgs
| Rogue-like focused on exploration of procedurally generated dungeons.
|Simon Tatham's portable puzzle collection
| available
|-
| [https://www.thedarkmod.com/main/ The Dark Mod]
| Stealth, FPS
| Stealth game inspired by the Thief series.
| [https://github.com/NixOS/nixpkgs/pull/356578 pending pull request]
|-
| [https://powdertoy.co.uk/ The Powder Toy]
| Sandbox
| Classic 'falling sand' physics sandbox game.Classic 2D jump'n run sidescroller game.
| available
|-
| [https://www.veloren.net/ Veloren]
| RPG, Sandbox
| Multiplayer voxel RPG set in a procedurally generated world.
| [https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ve/veloren/package.nix available]
|-
| [https://xonotic.org/ Xonotic]
| FPS, Arena shooter
| Fast-paced multiplayer shooter.
| [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games/xonotic available]
|-
|-
|[https://luanti.org Luanti]
|Sandbox
|In nixpkgs
|An open source voxel game engine.
|}
|}


== Example of games installation ==
== Installing games ==
 
=== Workarounds ===
 
Games that aren't yet available in nixpkgs can be played by other means, including but not limited to:
 
* <code>steam-run</code> as described in [[Steam]] or by installing it then running <code>steam-run $GAME</code> or <code>steam-run ./$GAME</code>.
* <code>programs.nix-ld = { enable = true; libraries = pkgs.steam-run.fhsenv.args.multiPkgs pkgs; };</code> to run nearly any binary by including all of the libraries used by Steam. [https://old.reddit.com/r/NixOS/comments/1d1nd9l/walking_through_why_precompiled_hello_world/ (Source)]
* <code>appimage-run</code> as described in [[Appimage]].
* [[Distrobox]] to virtualize an OS that has a package for your game.
 
=== 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:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 181: Line 260:


== See also ==
== See also ==
* [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games List of existing games in nixpkgs]
 
* [https://osgameclones.com/ Open Source Game Clones]
* [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games Games in Nixpkgs]
* [https://github.com/bobeff/open-source-games open-source-games list on Github by bobeff]
* [https://github.com/fufexan/nix-gaming Gaming on Nix (by fufexan)]
* [https://trilarion.github.io/opensourcegames/games/top.html 100 highest rated (by stars on Github) playable open source games]
* [https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=game Search in nixpkgs by "game" keyword]
* [[wikipedia:List_of_open-source_video_games|List of open-source video games (en.wikipedia)]]  
* [https://www.reddit.com/r/linux_gaming/wiki/freegames/ Linux Gaming Reddit wiki]
* [https://github.com/topics/open-source-game Topic "open-source-game" on github]  
* [[wikipedia:List_of_open-source_video_games|List of open-source video games (en.wikipedia)]]
* [https://trilarion.github.io/opensourcegames/games/top.html List of top rated open-source games]
* [https://github.com/bobeff/open-source-games List of open-source games (by bobeff)]
* [https://libregamewiki.org/List_of_games List of libre games]
* [https://lgames.sourceforge.io/about.php LGames website]
* [[wikipedia:Porting|Porting (en.wikipedia)]]
* [https://osgameclones.com/ Open-Source Game Clones website]
* [[GameMode|NixOS Wiki GameMode page]]
* [[Chess|NixOS Wiki Chess page]]


[[Category:Gaming]]
[[Category:Gaming]]
[[Category:Applications]]
[[Category:Applications]]
[[Category:Lists]]
[[Category:Lists]]