about summary refs log tree commit diff
path: root/pkgs/applications/editors/vim/configurable.nix
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2017-01-31 02:17:11 -0500
committerBenjamin Staffin <benley@gmail.com>2017-01-31 02:17:11 -0500
commit3dd2a271efff2617a54c3ed63bf3ed212ded77f8 (patch)
tree6d13abfc57ecf584467a186d4853843910b47416 /pkgs/applications/editors/vim/configurable.nix
parent61c48d9c45254e36e4ecb58ce7c263dda13bd9a0 (diff)
downloadnixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar.gz
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar.bz2
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar.lz
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar.xz
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.tar.zst
nixlib-3dd2a271efff2617a54c3ed63bf3ed212ded77f8.zip
vim: make it possible to build with --enable-gui=gtk3
This doesn't change any defaults; I suspect that dropping gtk2 support
would annoy some people so I didn't want to do that without asking
around first.
Diffstat (limited to 'pkgs/applications/editors/vim/configurable.nix')
-rw-r--r--pkgs/applications/editors/vim/configurable.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix
index d0a0c63d9d06..ee33c3e30708 100644
--- a/pkgs/applications/editors/vim/configurable.nix
+++ b/pkgs/applications/editors/vim/configurable.nix
@@ -1,7 +1,7 @@
 # TODO tidy up eg The patchelf code is patching gvim even if you don't build it..
 # but I have gvim with python support now :) - Marc
 args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, gettext
-, composableDerivation, writeText, lib, config, glib, gtk2, python, perl, tcl, ruby
+, composableDerivation, writeText, lib, config, glib, gtk2, gtk3, python, perl, tcl, ruby
 , libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu
 , libICE
 
@@ -69,8 +69,8 @@ composableDerivation {
     nativeBuildInputs = [ pkgconfig ];
 
     buildInputs
-      = [ ncurses gtk2 libX11 libXext libSM libXpm libXt libXaw libXau
-          libXmu glib libICE ];
+      = [ ncurses libX11 libXext libSM libXpm libXt libXaw libXau
+          libXmu glib libICE ] ++ (if args.gui == "gtk3" then [gtk3] else [gtk2]);
 
     # most interpreters aren't tested yet.. (see python for example how to do it)
     flags = {
@@ -149,7 +149,7 @@ composableDerivation {
     ftNixSupport     = config.vim.ftNix or true;
   };
 
-  #--enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
+  #--enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gtk3/gnome/gnome2/motif/athena/neXtaw/photon/carbon
     /*
       // edf "gtk_check" "gtk_check" { } #If auto-select GUI, check for GTK default=yes
       // edf "gtk2_check" "gtk2_check" { } #If GTK GUI, check for GTK+ 2 default=yes
@@ -171,4 +171,3 @@ composableDerivation {
 
   dontStrip = 1;
 })
-