2021-01-15 05:31:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
|
|
|
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
|
2019-11-10 17:44:34 +01:00
|
|
|
, openglSupport ? libGLSupported, libGLU, libGL ? null
|
2013-10-25 13:12:31 +02:00
|
|
|
}:
|
|
|
|
|
2019-11-10 17:44:34 +01:00
|
|
|
assert openglSupport -> libGL != null && libGLU != null;
|
2013-10-25 13:12:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.1.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "residualvm";
|
2013-10-25 13:12:31 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/residualvm/residualvm-${version}-sources.tar.bz2";
|
|
|
|
sha256 = "99c419b13885a49bdfc10a50a3a6000fd1ba9504f6aae04c74b840ec6f57a963";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
2021-01-15 05:31:39 +01:00
|
|
|
++ lib.optionals openglSupport [ libGL libGLU ];
|
2013-10-25 13:12:31 +02:00
|
|
|
|
2016-10-01 22:47:19 +02:00
|
|
|
configureFlags = [ "--enable-all-engines" ];
|
2013-10-25 13:12:31 +02:00
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
meta = with lib; {
|
2013-10-25 13:12:31 +02:00
|
|
|
description = "Interpreter for LucasArts' Lua-based 3D adventure games";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://residualvm.org/";
|
|
|
|
repositories.git = "https://github.com/residualvm/residualvm.git";
|
2017-12-05 23:20:11 +01:00
|
|
|
license = licenses.gpl2;
|
2021-01-15 05:31:39 +01:00
|
|
|
platforms = platforms.linux;
|
2013-10-25 13:12:31 +02:00
|
|
|
};
|
|
|
|
}
|