2017-11-29 11:26:27 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2018-11-03 04:39:40 +03:00
|
|
|
, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis
|
|
|
|
, libiconv }:
|
2010-08-01 19:14:33 +04:00
|
|
|
|
2010-08-01 18:24:46 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "gemrb";
|
2019-11-28 00:51:04 +03:00
|
|
|
version = "0.8.6";
|
2017-11-29 11:26:27 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gemrb";
|
|
|
|
repo = "gemrb";
|
|
|
|
rev = "v${version}";
|
2019-11-28 00:51:04 +03:00
|
|
|
sha256 = "0vsr3fsqmv9b7s5l0cwhpq2pf7ah2wvgmcn9y8asj6w8hprp17d4";
|
2007-05-15 01:47:11 +04:00
|
|
|
};
|
|
|
|
|
2014-08-24 18:50:59 +04:00
|
|
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
|
2018-11-03 04:39:40 +03:00
|
|
|
buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis libiconv ];
|
2007-05-15 01:47:11 +04:00
|
|
|
|
2017-11-29 11:26:27 +03:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2010-08-01 18:24:46 +04:00
|
|
|
|
2017-11-29 11:26:27 +03:00
|
|
|
enableParallelBuilding = true;
|
2010-08-01 18:24:46 +04:00
|
|
|
|
2017-11-29 11:26:27 +03:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLAYOUT=opt"
|
|
|
|
];
|
2014-08-24 18:50:59 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
2014-08-24 18:50:59 +04:00
|
|
|
longDescription = ''
|
2017-11-29 11:26:27 +03:00
|
|
|
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).
|
2014-08-24 18:50:59 +04:00
|
|
|
'';
|
|
|
|
homepage = http://gemrb.org/;
|
|
|
|
license = licenses.gpl2;
|
2017-12-06 01:20:11 +03:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2017-11-29 11:26:27 +03:00
|
|
|
platforms = platforms.all;
|
2007-05-15 01:47:11 +04:00
|
|
|
};
|
|
|
|
}
|