git.iko.soy/typeable/nixpkgs
on master help sign in
gemrb: 0.8.1 -> 0.8.5

Additionally: - use SDL2 instead of SDL

commit9a4cd4033791d27c5d09b5af173843008310850a authorPeter Hoeg <peter@hoeg.com> dateWed 29 Nov 2017, 16:26 (9 years ago) parent78b3d6d
1 file changed+22−20
pkgs/games/gemrb/default.nix+22−20
pkgs/games/gemrb/default.nix+22−20
@@ -1,37 +1,39 @@
1−{ stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }:
2−
3−assert stdenv.cc.libc != null;
1+{ stdenv, fetchFromGitHub, cmake
2+, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis }:
43
54stdenv.mkDerivation rec {
6− name = "gemrb-0.8.1";
7−
8− src = fetchurl {
9− url = "mirror://sourceforge/gemrb/${name}.tar.gz";
10− sha256 = "1g68pc0x4azy6zm5y7813g0qky96q796si9v3vafiy7sa8ph49kl";
5+ name = "gemrb-${version}";
6+ version = "0.8.5";
7+
8+ src = fetchFromGitHub {
9+ owner = "gemrb";
10+ repo = "gemrb";
11+ rev = "v${version}";
12+ sha256 = "0xkjsiawxz53rac26vqz9sfgva0syff8x8crabrpbpxgmbacih7a";
1113 };
1214
13− buildInputs = [ cmake python openal SDL zlib libpng libvorbis ];
1415 # TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
16+ buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis ];
1517
16− # Necessary to find libdl.
17− CMAKE_LIBRARY_PATH = "${stdenv.cc.libc.out}/lib";
18+ nativeBuildInputs = [ cmake ];
1819
19− # Can't have -werror because of the Vorbis header files.
20− cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
20+ enableParallelBuilding = true;
2121
22− # upstream prefers some symbols to remain
23− dontStrip = true;
22+ cmakeFlags = [
23+ "-DLAYOUT=opt"
24+ ];
2425
2526 meta = with stdenv.lib; {
2627 description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
2728 longDescription = ''
28− GemRB (Game engine made with pre-Rendered Background) is a portable open-source implementation of
29− Bioware's Infinity Engine. It was written to support pseudo-3D role playing games based on the
30− Dungeons & Dragons ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
29+ GemRB (Game engine made with pre-Rendered Background) is a portable
30+ open-source implementation of Bioware's Infinity Engine. It was written to
31+ support pseudo-3D role playing games based on the Dungeons & Dragons
32+ ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
3133 '';
3234 homepage = http://gemrb.org/;
3335 license = licenses.gpl2;
34− platforms = stdenv.lib.platforms.all;
35− hydraPlatforms = [];
36+ maintainer = with maintainers; [ peterhoeg ];
37+ platforms = platforms.all;
3638 };
3739}