From 6b486cf9472dd2e7f967ff5a9878648bc2175626 Mon Sep 17 00:00:00 2001 From: 8573 <8573@users.noreply.github.com> Date: Thu, 9 Aug 2018 02:11:24 -0700 Subject: [PATCH] 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. --- pkgs/applications/editors/vim/configurable.nix | 2 ++ 1 file changed, 2 insertions(+) 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