about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/residualvm/default.nix
blob: 9a836c5950879bbf9dc0d65f27b8a02ddc39d297 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsa-lib
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
, openglSupport ? libGLSupported, libGLU, libGL ? null
}:

assert openglSupport -> libGL != null && libGLU != null;

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 alsa-lib ]
    ++ lib.optionals openglSupport [ libGL libGLU ];

  configureFlags = [ "--enable-all-engines" ];

  meta = with lib; {
    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 = platforms.linux;
  };
}