mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
1,023 B
Nix
32 lines
1,023 B
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_combined ? null
|
|
}:
|
|
|
|
assert openglSupport -> libGLU_combined != 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 ]
|
|
++ optional openglSupport libGLU_combined;
|
|
|
|
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;
|
|
};
|
|
}
|