summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2018-01-16 17:41:31 +0900
committerMatthieu Coudron <mattator@gmail.com>2018-01-16 17:41:31 +0900
commit266a65eaa9b0588f7ce0af43bfebf154a15b67b4 (patch)
tree8c724c687f6b37178ca4088496958a44d9e54d6a /pkgs/applications/editors/neovim
parentc4d37f146086054b44b1609a5a4f5cfed32e4bb0 (diff)
downloadnixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar.gz
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar.bz2
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar.lz
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar.xz
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.tar.zst
nixpkgs-266a65eaa9b0588f7ce0af43bfebf154a15b67b4.zip
neovim: don't install desktop file on darwin
nvim.desktop doesn't exist on darwin so forcefully reading it fails.
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/wrapper.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix
index 2acba83d00b..e2218473d72 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" \