mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
neovim: fix icon not displaying
This commit is contained in:
parent
29b5aaeb5d
commit
3388941c59
@ -75,8 +75,9 @@ let
|
|||||||
${optionalString withRuby '' --set GEM_HOME ${rubyEnv}/${rubyEnv.ruby.gemPath}'' }
|
${optionalString withRuby '' --set GEM_HOME ${rubyEnv}/${rubyEnv.ruby.gemPath}'' }
|
||||||
''
|
''
|
||||||
+ optionalString (!stdenv.isDarwin) ''
|
+ optionalString (!stdenv.isDarwin) ''
|
||||||
# copy and patch the original neovim.desktop file
|
# copy icon and patch the original neovim.desktop file
|
||||||
mkdir -p $out/share/applications
|
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 \
|
substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \
|
||||||
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
|
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
|
||||||
--replace 'Name=Neovim' 'Name=WrappedNeovim'
|
--replace 'Name=Neovim' 'Name=WrappedNeovim'
|
||||||
|
Loading…
Reference in New Issue
Block a user