neovim: don't install desktop file on darwin
nvim.desktop doesn't exist on darwin so forcefully reading it fails.
This commit is contained in:
parent
c4d37f1460
commit
266a65eaa9
@ -68,7 +68,9 @@ let
|
||||
--unset PYTHONPATH \
|
||||
${optionalString withRuby '' --suffix PATH : ${rubyEnv}/bin --set GEM_HOME ${rubyEnv}/${rubyEnv.ruby.gemPath}'' }
|
||||
|
||||
# copy and patch the original neovim.destkop file
|
||||
''
|
||||
+ optionalString (!stdenv.isDarwin) ''
|
||||
# copy and patch the original neovim.desktop file
|
||||
mkdir -p $out/share/applications
|
||||
substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \
|
||||
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
|
||||
|
Loading…
Reference in New Issue
Block a user