vim_configurable: make gtk optional

Using vim_configurable.override { guiSupport = "no"; } would still pull
in gtk2 as a dependency.
This commit is contained in:
Daiderd Jordan 2018-08-19 21:41:15 +02:00
parent a50807e1b8
commit 8a6064a526
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -129,7 +129,8 @@ in stdenv.mkDerivation rec {
buildInputs = [ ncurses libX11 libXext libSM libXpm libXt libXaw libXau
libXmu glib libICE ]
++ (if guiSupport == "gtk3" then [gtk3] else [gtk2])
++ stdenv.lib.optional (guiSupport == "gtk2") gtk2
++ stdenv.lib.optional (guiSupport == "gtk3") gtk3
++ stdenv.lib.optionals darwinSupport [ CoreServices CoreData Cocoa Foundation libobjc cf-private ]
++ stdenv.lib.optional luaSupport lua
++ stdenv.lib.optional pythonSupport python