2017-11-29 09:26:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2018-11-03 02:39:40 +01:00
|
|
|
, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis
|
|
|
|
, libiconv }:
|
2010-08-01 17:14:33 +02:00
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gemrb";
|
2020-08-30 05:45:31 +02:00
|
|
|
version = "0.8.7";
|
2017-11-29 09:26:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-30 05:45:31 +02:00
|
|
|
owner = "gemrb";
|
|
|
|
repo = "gemrb";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14j9mhrbi4gnrbv25nlsvcxzkylijzrnwbqqnrg7pr452lb3srpb";
|
2007-05-14 23:47:11 +02:00
|
|
|
};
|
|
|
|
|
2020-08-30 05:45:31 +02:00
|
|
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl
|
|
|
|
# reqs) optional
|
2018-11-03 02:39:40 +01:00
|
|
|
buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis libiconv ];
|
2007-05-14 23:47:11 +02:00
|
|
|
|
2017-11-29 09:26:27 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2010-08-01 16:24:46 +02:00
|
|
|
|
2020-08-30 05:45:31 +02:00
|
|
|
# TODO: add proper OpenGL support. We are currently (0.8.7) getting a shader
|
|
|
|
# error on execution when enabled.
|
2017-11-29 09:26:27 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLAYOUT=opt"
|
2020-08-30 05:45:31 +02:00
|
|
|
# "-DOPENGL_BACKEND=GLES"
|
|
|
|
# "-DOpenGL_GL_PREFERENCE=GLVND"
|
2017-11-29 09:26:27 +01:00
|
|
|
];
|
2014-08-24 16:50:59 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
2014-08-24 16:50:59 +02:00
|
|
|
longDescription = ''
|
2017-11-29 09:26:27 +01: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 16:50:59 +02:00
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://gemrb.org/";
|
2014-08-24 16:50:59 +02:00
|
|
|
license = licenses.gpl2;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2017-11-29 09:26:27 +01:00
|
|
|
platforms = platforms.all;
|
2007-05-14 23:47:11 +02:00
|
|
|
};
|
|
|
|
}
|