about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-11-29 16:26:27 +0800
committerPeter Hoeg <peter@hoeg.com>2017-11-30 11:14:47 +0800
commit9a4cd4033791d27c5d09b5af173843008310850a (patch)
treee305b96c04eb9182ab84ba82919052e7d620ae2d
parent78b3d6de28ea46926983764e01c1797c22b8215b (diff)
downloadnixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar.gz
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar.bz2
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar.lz
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar.xz
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.tar.zst
nixlib-9a4cd4033791d27c5d09b5af173843008310850a.zip
gemrb: 0.8.1 -> 0.8.5
Additionally:
 - use SDL2 instead of SDL
-rw-r--r--pkgs/games/gemrb/default.nix42
1 files changed, 22 insertions, 20 deletions
diff --git a/pkgs/games/gemrb/default.nix b/pkgs/games/gemrb/default.nix
index 42d80f86e828..abe1c2c55991 100644
--- a/pkgs/games/gemrb/default.nix
+++ b/pkgs/games/gemrb/default.nix
@@ -1,37 +1,39 @@
-{ stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }:
-
-assert stdenv.cc.libc != null;
+{ stdenv, fetchFromGitHub, cmake
+, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis }:
 
 stdenv.mkDerivation rec {
-  name = "gemrb-0.8.1";
-  
-  src = fetchurl {
-    url = "mirror://sourceforge/gemrb/${name}.tar.gz";
-    sha256 = "1g68pc0x4azy6zm5y7813g0qky96q796si9v3vafiy7sa8ph49kl";
+  name = "gemrb-${version}";
+  version = "0.8.5";
+
+  src = fetchFromGitHub {
+    owner  = "gemrb";
+    repo   = "gemrb";
+    rev    = "v${version}";
+    sha256 = "0xkjsiawxz53rac26vqz9sfgva0syff8x8crabrpbpxgmbacih7a";
   };
 
-  buildInputs = [ cmake python openal SDL zlib libpng libvorbis ];
   # TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
+  buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis ];
 
-  # Necessary to find libdl.
-  CMAKE_LIBRARY_PATH = "${stdenv.cc.libc.out}/lib";
+  nativeBuildInputs = [ cmake ];
 
-  # Can't have -werror because of the Vorbis header files.
-  cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
+  enableParallelBuilding = true;
 
-  # upstream prefers some symbols to remain
-  dontStrip = true;
+  cmakeFlags = [
+    "-DLAYOUT=opt"
+  ];
 
   meta = with stdenv.lib; {
     description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
     longDescription = ''
-      GemRB (Game engine made with pre-Rendered Background) is a portable open-source implementation of
-      Bioware's Infinity Engine. It was written to support pseudo-3D role playing games based on the
-      Dungeons & Dragons ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
+      GemRB (Game engine made with pre-Rendered Background) is a portable
+      open-source implementation of Bioware's Infinity Engine. It was written to
+      support pseudo-3D role playing games based on the Dungeons & Dragons
+      ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
     '';
     homepage = http://gemrb.org/;
     license = licenses.gpl2;
-    platforms = stdenv.lib.platforms.all;
-    hydraPlatforms = [];
+    maintainer = with maintainers; [ peterhoeg ];
+    platforms = platforms.all;
   };
 }