neovim: fix icon not displaying
This commit is contained in:
parent
29b5aaeb5d
commit
3388941c59
1 changed files with 3 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue