pkgs/games: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, SDL, SDL_mixer, SDL_net
|
||||
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_net
|
||||
, libGLU ? null
|
||||
, libGL ? null
|
||||
, useOpenGL ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||
@@ -14,21 +14,21 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs = [ SDL SDL_mixer SDL_net ]
|
||||
++ stdenv.lib.optionals useOpenGL [ libGL libGLU ];
|
||||
++ lib.optionals useOpenGL [ libGL libGLU ];
|
||||
|
||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
|
||||
configureFlags = [
|
||||
(stdenv.lib.enableFeature useOpenGL "gl")
|
||||
(stdenv.lib.enableFeature doCheck "sdltest")
|
||||
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
(lib.enableFeature useOpenGL "gl")
|
||||
(lib.enableFeature doCheck "sdltest")
|
||||
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"--disable-cpu-opt"
|
||||
"--without-x"
|
||||
"ac_cv_type_uid_t=yes"
|
||||
"ac_cv_type_gid_t=yes"
|
||||
];
|
||||
|
||||
postInstall = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
mv $out/games/ $out/bin
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user