diff options
Diffstat (limited to 'pkgs/applications/editors/neovim/default.nix')
-rw-r--r-- | pkgs/applications/editors/neovim/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index ba3abe6a221f..238109ae9cb4 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -9,6 +9,7 @@ , withPyGUI ? false , vimAlias ? false +, viAlias ? false , configure ? null }: @@ -174,7 +175,9 @@ let }; }; -in if (vimAlias == false && configure == null) then neovim else stdenv.mkDerivation { +in if (vimAlias == false && viAlias == false && configure == null) + then neovim + else stdenv.mkDerivation { name = "neovim-${neovim.version}-configured"; inherit (neovim) version meta; @@ -187,6 +190,8 @@ in if (vimAlias == false && configure == null) then neovim else stdenv.mkDerivat done '' + optionalString vimAlias '' ln -s $out/bin/nvim $out/bin/vim + '' + optionalString viAlias '' + ln -s $out/bin/nvim $out/bin/vi '' + optionalString (configure != null) '' wrapProgram $out/bin/nvim --add-flags "-u ${vimUtils.vimrcFile configure}" ''; |