summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/vim
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-07-11 09:00:18 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-07-11 09:00:18 +0200
commita3a40ac7cce002c53a036fcf09cc92970c15b235 (patch)
tree3afb8f4a91335445605ad4ef945235dca4153af3 /pkgs/applications/editors/vim
parent4be4ae71aa6e02194db8538fa11f6f439c89f8b9 (diff)
parentae8eee9c3f97ba4973da524094a5f1fab592b70a (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/editors/vim')
-rw-r--r--pkgs/applications/editors/vim/configurable.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix
index 83c8533f5cdf..77d7ca983cdd 100644
--- a/pkgs/applications/editors/vim/configurable.nix
+++ b/pkgs/applications/editors/vim/configurable.nix
@@ -1,5 +1,3 @@
-# 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
{ source ? "default", callPackage, stdenv, ncurses, pkgconfig, gettext
, writeText, config, glib, gtk2-x11, gtk3-x11, lua, python, perl, tcl, ruby
, libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu
@@ -156,7 +154,12 @@ in stdenv.mkDerivation rec {
'' + stdenv.lib.optionalString stdenv.isLinux ''
patchelf --set-rpath \
"$(patchelf --print-rpath $out/bin/vim):${stdenv.lib.makeLibraryPath buildInputs}" \
- "$out"/bin/{vim,gvim}
+ "$out"/bin/vim
+ if [[ -e "$out"/bin/gvim ]]; then
+ patchelf --set-rpath \
+ "$(patchelf --print-rpath $out/bin/vim):${stdenv.lib.makeLibraryPath buildInputs}" \
+ "$out"/bin/gvim
+ fi
ln -sfn '${nixosRuntimepath}' "$out"/share/vim/vimrc
'' + stdenv.lib.optionalString wrapPythonDrv ''