summary refs log tree commit diff
path: root/pkgs/applications/editors/vim
diff options
context:
space:
mode:
author8573 <8573@users.noreply.github.com>2018-08-09 02:11:24 -0700
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-09 11:11:24 +0200
commit6b486cf9472dd2e7f967ff5a9878648bc2175626 (patch)
tree9e9da2d94ad61cf78498d542cba62161dc4318d0 /pkgs/applications/editors/vim
parentca79107a7951b3fb7512ffd4639aea0056593b7e (diff)
downloadnixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar.gz
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar.bz2
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar.lz
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar.xz
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.tar.zst
nixlib-6b486cf9472dd2e7f967ff5a9878648bc2175626.zip
vim_configurable: Add `wrapGAppsHook` for GTK 3 (#44645)
As suggested by @jtojnar in GitHub issue #44580, this patch adds the
package `wrapGAppsHook` to the dependencies (specifically, the
`nativeBuildInputs`) of `vim_configurable`, when `vim_configurable` is
built against GTK 3.

This change prevents GVim from crashing if one tries to use its
file-choosing dialog, and fixes a warning that otherwise might be
emitted if one tries to use its find/replace dialog.
Diffstat (limited to 'pkgs/applications/editors/vim')
-rw-r--r--pkgs/applications/editors/vim/configurable.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix
index 36450237b5a9..81b5be7dd2ba 100644
--- a/pkgs/applications/editors/vim/configurable.nix
+++ b/pkgs/applications/editors/vim/configurable.nix
@@ -6,6 +6,7 @@ args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, ge
 , libICE
 , vimPlugins
 , makeWrapper
+, wrapGAppsHook
 
 # apple frameworks
 , CoreServices, CoreData, Cocoa, Foundation, libobjc, cf-private
@@ -122,6 +123,7 @@ in stdenv.mkDerivation rec {
   ++ stdenv.lib.optional wrapPythonDrv makeWrapper
   ++ stdenv.lib.optional nlsSupport gettext
   ++ stdenv.lib.optional perlSupport perl
+  ++ stdenv.lib.optional (guiSupport == "gtk3") wrapGAppsHook
   ;
 
   buildInputs = [ ncurses libX11 libXext libSM libXpm libXt libXaw libXau