mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
4e5ebcc3ed
Avoids confusion: `vim-full`'s build-time features are configurable, but both `vim` and `vim-full` are *customizable* (in the sense of user configuration).
27 lines
684 B
Nix
27 lines
684 B
Nix
{ vimUtils, vim-full, writeText, vimPlugins
|
|
, lib, fetchFromGitHub
|
|
, pkgs
|
|
}:
|
|
let
|
|
inherit (vimUtils) buildVimPluginFrom2Nix;
|
|
|
|
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
|
|
|
in
|
|
pkgs.recurseIntoAttrs (rec {
|
|
vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };
|
|
|
|
### vim tests
|
|
##################
|
|
|
|
test_vim_with_vim_nix_using_plug = vim-full.customize {
|
|
name = "vim-with-vim-addon-nix-using-plug";
|
|
vimrcConfig.plug.plugins = with vimPlugins; [ vim-nix ];
|
|
};
|
|
|
|
test_vim_with_vim_nix = vim-full.customize {
|
|
name = "vim-with-vim-addon-nix";
|
|
vimrcConfig.packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
|
};
|
|
})
|