about summary refs log tree commit diff
path: root/pkgs/games/gog/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-19 04:32:32 +0100
committeraszlig <aszlig@nix.build>2018-02-21 20:38:34 +0100
commit77a0f47d06f3d21b78c7f34a129bc3f75d69fbf7 (patch)
treefe50abea68d2ce04b104058f097aa6aa89737bb2 /pkgs/games/gog/default.nix
parent73b4b0bfb78998a53b73ce2501f4d2b8bc73198d (diff)
games/gog: Add statically recompiled Albion
We only fetch the data files from GOG here and use the port from
OpenPandora (https://repo.openpandora.org/?page=detail&app=albion_sr)
for the main game executable.

Instead of using the binaries of the static recompiler, this is
completely compiled from source and comes with a few changes in the form
of a few patches:

  config.patch:

    Hide the mouse cursor and set the default scaled resolution to
    1280x960 (the window can still be resized) in the default
    albion.cfg.

  error-log-stderr.patch:

    Whenever an error happens, the game usually creates a file called
    "error.log", which contains the actual error message. This patch
    makes sure the file isn't created but the error message is printed
    to stderr.

  scons.patch:

    Fixes a few SConstruct/SConscript files to use the builder's
    environment, so that it can find executables such as gcc.

  sdl2.patch:

    SDL 2 has dropped support for the keysym.unicode field at some
    point, so use keysym.sym instead. This has the disadvantage that it
    doesn't recognize key modifiers, so we might want to switch this to
    use the SDL_TEXTINPUT event.

  xdg-paths.patch:

    We want to use XDG_CONFIG_HOME and XDG_DATA_HOME instead of writing
    everything to one directory, so this patch makes sure that the paths
    are correctly read depending on whether its an XDG directory or one
    of the store paths of the game.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/gog/default.nix')
-rw-r--r--pkgs/games/gog/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/games/gog/default.nix b/pkgs/games/gog/default.nix
index 111091c3..8d8379a3 100644
--- a/pkgs/games/gog/default.nix
+++ b/pkgs/games/gog/default.nix
@@ -10,6 +10,8 @@ let
     fetchGog = callPackage ./fetch-gog {
       inherit (config.gog) email password;
     };
+
+    albion = callPackage_i686 ./albion { inherit (pkgs) buildSandbox; };
   };
 in {
   options.gog = {