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.
This commit is contained in:
parent
c8a19af1a0
commit
24716fe954
@ -161,6 +161,10 @@ composableDerivation {
|
|||||||
// edf "gtktest" "gtktest" { } #Do not try to compile and run a test GTK program
|
// 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 ''
|
postInstall = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
patchelf --set-rpath \
|
patchelf --set-rpath \
|
||||||
"$(patchelf --print-rpath $out/bin/vim):${lib.makeLibraryPath buildInputs}" \
|
"$(patchelf --print-rpath $out/bin/vim):${lib.makeLibraryPath buildInputs}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user