@@ -1,29 +0,0 @@
1−{ lib, stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsa-lib
2−, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
3−, openglSupport ? libGLSupported, libGLU, libGL ? null
4−}:
5−
6−assert openglSupport -> libGL != null && libGLU != null;
7−
8−stdenv.mkDerivation rec {
9− version = "0.1.1";
10− pname = "residualvm";
11−
12− src = fetchurl {
13− url = "mirror://sourceforge/residualvm/residualvm-${version}-sources.tar.bz2";
14− sha256 = "99c419b13885a49bdfc10a50a3a6000fd1ba9504f6aae04c74b840ec6f57a963";
15− };
16−
17− buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsa-lib ]
18− ++ lib.optionals openglSupport [ libGL libGLU ];
19−
20− configureFlags = [ "--enable-all-engines" ];
21−
22− meta = with lib; {
23− description = "Interpreter for LucasArts' Lua-based 3D adventure games";
24− homepage = "http://residualvm.org/";
25− repositories.git = "https://github.com/residualvm/residualvm.git";
26− license = licenses.gpl2;
27− platforms = platforms.linux;
28− };
29−}