diff options
author | Benjamin Staffin <benley@gmail.com> | 2017-02-04 21:29:59 -0500 |
---|---|---|
committer | Benjamin Staffin <benley@gmail.com> | 2017-02-04 21:29:59 -0500 |
commit | 24716fe9541be7f8cd5336aafd2231e8eed7817b (patch) | |
tree | d891eac4b31d82520613ae35bfbcec0227a3d439 /pkgs/applications/editors/vim | |
parent | c8a19af1a00a0fec92838592a6683cea7a7071e3 (diff) | |
download | nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar.gz nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar.bz2 nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar.lz nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar.xz nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.tar.zst nixlib-24716fe9541be7f8cd5336aafd2231e8eed7817b.zip |
vim: Create xdg apps/icons dirs so .desktop items get installed
In theory this ought to make gvim show up in the kde/gnome/xfce application menus.
Diffstat (limited to 'pkgs/applications/editors/vim')
-rw-r--r-- | pkgs/applications/editors/vim/configurable.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index ee33c3e30708..9c0becc47295 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -161,6 +161,10 @@ composableDerivation { // edf "gtktest" "gtktest" { } #Do not try to compile and run a test GTK program */ + preInstall = '' + mkdir -p $out/share/applications $out/share/icons/{hicolor,locolor}/{16x16,32x32,48x48}/apps + ''; + postInstall = stdenv.lib.optionalString stdenv.isLinux '' patchelf --set-rpath \ "$(patchelf --print-rpath $out/bin/vim):${lib.makeLibraryPath buildInputs}" \ |