From 266a65eaa9b0588f7ce0af43bfebf154a15b67b4 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Tue, 16 Jan 2018 17:41:31 +0900 Subject: [PATCH] neovim: don't install desktop file on darwin nvim.desktop doesn't exist on darwin so forcefully reading it fails. --- pkgs/applications/editors/neovim/wrapper.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix index 2acba83d00bb..e2218473d723 100644 --- a/pkgs/applications/editors/neovim/wrapper.nix +++ b/pkgs/applications/editors/neovim/wrapper.nix @@ -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" \