pkgs/games: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 13:36:04 +07:00
parent 93e5d99592
commit 2e34288f0d
159 changed files with 457 additions and 465 deletions
+5 -7
View File
@@ -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;
};
}