@@ -1,7 +1,7 @@
11# TODO tidy up eg The patchelf code is patching gvim even if you don't build it..
22# but I have gvim with python support now :) - Marc
33args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, gettext
4−, composableDerivation, writeText, lib, config, glib, gtk2, python, perl, tcl, ruby
4+, composableDerivation, writeText, lib, config, glib, gtk2, gtk3, python, perl, tcl, ruby
55, libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu
66, libICE
77
@@ -69,8 +69,8 @@ composableDerivation {
6969 nativeBuildInputs = [ pkgconfig ];
7070
7171 buildInputs
72− = [ ncurses gtk2 libX11 libXext libSM libXpm libXt libXaw libXau
73− libXmu glib libICE ];
72+ = [ ncurses libX11 libXext libSM libXpm libXt libXaw libXau
73+ libXmu glib libICE ] ++ (if args.gui == "gtk3" then [gtk3] else [gtk2]);
7474
7575 # most interpreters aren't tested yet.. (see python for example how to do it)
7676 flags = {
@@ -149,7 +149,7 @@ composableDerivation {
149149 ftNixSupport = config.vim.ftNix or true;
150150 };
151151
152− #--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
152+ #--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gtk3/gnome/gnome2/motif/athena/neXtaw/photon/carbon
153153 /*
154154 // edf "gtk_check" "gtk_check" { } #If auto-select GUI, check for GTK default=yes
155155 // edf "gtk2_check" "gtk2_check" { } #If GTK GUI, check for GTK+ 2 default=yes
@@ -171,4 +171,3 @@ composableDerivation {
171171
172172 dontStrip = 1;
173173})
174−