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:
Matthieu Coudron 2018-01-16 17:41:31 +09:00
parent c4d37f1460
commit 266a65eaa9

View File

@ -68,7 +68,9 @@ let
--unset PYTHONPATH \ --unset PYTHONPATH \
${optionalString withRuby '' --suffix PATH : ${rubyEnv}/bin --set GEM_HOME ${rubyEnv}/${rubyEnv.ruby.gemPath}'' } ${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 mkdir -p $out/share/applications
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" \