about summary refs log tree commit diff
path: root/pkgs/games/uqm
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-07-21 10:38:57 +0200
committeraszlig <aszlig@nix.build>2022-07-21 10:38:57 +0200
commit91e092ab688c340fffba3b77ac1ffa5a2fa67fc4 (patch)
treed94cb221495c1f57b8154a0e09cba5036e4a0f42 /pkgs/games/uqm
parent8d63f78354cd8aaef92067bd69c02ac9fc86ccc0 (diff)
uqm: Switch to building with SDL2
Version 0.8.0 finally has support for SDL2 and thus much better support
for multiple monitors. While I'm currently on my crap^Wlaptop, I can't
test support for it, however when trying UQM with SDL1 it wasn't even
able to create a window:

  Couldn't set OpenGL 800x600x32 video mode: Couldn't find matching GLX visual
  Couldn't set OpenGL 800x600x24 video mode: Couldn't find matching GLX visual
  Couldn't set OpenGL 800x600x16 video mode: Couldn't find matching GLX visual
  Couldn't set any OpenGL 800x600 video mode!
  Could not initialize video: no fallback at start of program!
  Do not know how to display an error box

SDL2 on the other hand works like a charm and it also scales properly
when you resize the window (one thing that has annoyed me with the SDL1
version in the past).

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/uqm')
-rw-r--r--pkgs/games/uqm/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/uqm/default.nix b/pkgs/games/uqm/default.nix
index 9069991a87faf..797c41916f1c1 100644
--- a/pkgs/games/uqm/default.nix
+++ b/pkgs/games/uqm/default.nix
@@ -1,5 +1,5 @@
 { stdenv, lib, fetchurl, fetchFromGitHub, pkg-config, libGLU, libGL
-, SDL, SDL_image, libpng, libvorbis, libogg, libmikmod
+, SDL2, libpng, libvorbis, libogg, libmikmod
 
 , use3DOVideos ? false, requireFile ? null, writeText ? null
 , haskellPackages ? null
@@ -51,7 +51,7 @@ in stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ pkg-config ];
-  buildInputs = [ SDL SDL_image libpng libvorbis libogg libmikmod libGLU libGL ];
+  buildInputs = [ SDL2 libpng libvorbis libogg libmikmod libGLU libGL ];
 
   postUnpack = ''
     mkdir -p uqm-${version}/content/packages