pkgs/games: stdenv.lib -> lib
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
||||
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
|
||||
{ lib, stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
||||
, libGLSupported ? lib.elem stdenv.hostPlatform.system 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";
|
||||
@@ -17,15 +15,15 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
||||
++ optionals openglSupport [ libGL libGLU ];
|
||||
++ lib.optionals openglSupport [ libGL libGLU ];
|
||||
|
||||
configureFlags = [ "--enable-all-engines" ];
|
||||
|
||||
meta = {
|
||||
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 = stdenv.lib.platforms.linux;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user