nixpkgs/pkgs/games/residualvm/default.nix

30 lines
1011 B
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
2019-11-10 16:44:34 +00:00
, openglSupport ? libGLSupported, libGLU, libGL ? null
}:
2019-11-10 16:44:34 +00:00
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 alsaLib ]
2021-01-15 04:31:39 +00:00
++ lib.optionals openglSupport [ libGL libGLU ];
configureFlags = [ "--enable-all-engines" ];
2021-01-15 04:31:39 +00:00
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;
2021-01-15 04:31:39 +00:00
platforms = platforms.linux;
};
}