8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
1 KiB
Nix
31 lines
1 KiB
Nix
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
|
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
|
|
, openglSupport ? libGLSupported, libGLU, libGL ? null
|
|
}:
|
|
|
|
assert openglSupport -> libGL != null && libGLU != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.1.1";
|
|
pname = "residualvm";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/residualvm/residualvm-${version}-sources.tar.bz2";
|
|
sha256 = "99c419b13885a49bdfc10a50a3a6000fd1ba9504f6aae04c74b840ec6f57a963";
|
|
};
|
|
|
|
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
|
++ optionals openglSupport [ libGL libGLU ];
|
|
|
|
configureFlags = [ "--enable-all-engines" ];
|
|
|
|
meta = {
|
|
description = "Interpreter for LucasArts' Lua-based 3D adventure games";
|
|
homepage = "http://residualvm.org/";
|
|
repositories.git = "https://github.com/residualvm/residualvm.git";
|
|
license = licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|