neovim: fix icon not displaying

This commit is contained in:
Shreyansh Khajanchi 2019-10-04 00:08:41 +02:00 committed by Matthieu Coudron
parent 29b5aaeb5d
commit 3388941c59

View File

@ -75,8 +75,9 @@ let
${optionalString withRuby '' --set GEM_HOME ${rubyEnv}/${rubyEnv.ruby.gemPath}'' }
''
+ optionalString (!stdenv.isDarwin) ''
# copy and patch the original neovim.desktop file
mkdir -p $out/share/applications
# copy icon and patch the original neovim.desktop file
mkdir -p $out/share/{applications,pixmaps}
ln -s ${neovim}/share/pixmaps/nvim.png $out/share/pixmaps/nvim.png
substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
--replace 'Name=Neovim' 'Name=WrappedNeovim'