mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 03:43:53 +03:00
treewide: Fix more 'lib.optional' misuses
This commit is contained in:
parent
4059854351
commit
eda2dd3d2f
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
libtermkey
|
||||
lua
|
||||
lpeg
|
||||
] ++ stdenv.lib.optional stdenv.isLinux [
|
||||
] ++ stdenv.lib.optionals stdenv.isLinux [
|
||||
acl
|
||||
libselinux
|
||||
];
|
||||
|
@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[ perl gnum4 ncurses openssl makeWrapper
|
||||
] ++ optional wxSupport [ mesa wxGTK xorg.libX11 ]
|
||||
++ optional odbcSupport [ unixODBC ]
|
||||
++ optional stdenv.isDarwin [ Carbon Cocoa ];
|
||||
] ++ optionals wxSupport [ mesa wxGTK xorg.libX11 ]
|
||||
++ optional odbcSupport unixODBC
|
||||
++ optionals stdenv.isDarwin [ Carbon Cocoa ];
|
||||
|
||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||
|
||||
|
@ -16,9 +16,9 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
||||
++ optional openglSupport [ mesa ];
|
||||
++ optional openglSupport mesa;
|
||||
|
||||
configureFlags="--enable-all-engines";
|
||||
configureFlags = [ "--enable-all-engines" ];
|
||||
|
||||
meta = {
|
||||
description = "Interpreter for LucasArts' Lua-based 3D adventure games";
|
||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withTeXLive (texlive.combine { inherit (texlive) scheme-small; })
|
||||
++ lib.optional withLua lua
|
||||
++ lib.optionals withX [ libX11 libXpm libXt libXaw ]
|
||||
++ lib.optional withQt [ qt ]
|
||||
++ lib.optional withQt qt
|
||||
# compiling with wxGTK causes a malloc (double free) error on darwin
|
||||
++ lib.optional (withWxGTK && !stdenv.isDarwin) wxGTK;
|
||||
|
||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
buildInputs = [ libdv libjpeg libpng pkgconfig ]
|
||||
++ lib.optional (!withMinimal) [ gtk2 libX11 SDL SDL_gfx ];
|
||||
++ lib.optionals (!withMinimal) [ gtk2 libX11 SDL SDL_gfx ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optional (!withMinimal) "-I${SDL.dev}/include/SDL";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user