diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-20 10:01:49 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-20 10:01:49 +0100 |
commit | 65edeb8633de16792a84195f77a6b4ea408e2608 (patch) | |
tree | be3960fdb869c4d25b8128fb1080810e6ea22756 /pkgs/applications/editors/vim | |
parent | 13bab298fc1ad49db5449b262125d25d849bc90e (diff) | |
parent | 648152fdbbdbb8a51335b94647ea9f959f42064d (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/editors/vim')
-rw-r--r-- | pkgs/applications/editors/vim/configurable.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index d21d0ad5ee00..bb3d571e6f86 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -145,7 +145,12 @@ in stdenv.mkDerivation rec { cp ${vimPlugins.vim-nix.src}/syntax/nix.vim runtime/syntax/nix.vim ''; + preInstall = '' + mkdir -p $out/share/applications $out/share/icons/{hicolor,locolor}/{16x16,32x32,48x48}/apps + ''; + postInstall = '' + ln -s $out/bin/vim $out/bin/vi '' + stdenv.lib.optionalString stdenv.isLinux '' patchelf --set-rpath \ "$(patchelf --print-rpath $out/bin/vim):${stdenv.lib.makeLibraryPath buildInputs}" \ @@ -177,9 +182,5 @@ in stdenv.mkDerivation rec { rewrap gvimdiff -gd ''; - preInstall = '' - mkdir -p $out/share/applications $out/share/icons/{hicolor,locolor}/{16x16,32x32,48x48}/apps - ''; - - dontStrip = 1; + dontStrip = true; } |