Skip to content

Commit

Permalink
vimUtils: update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed Dec 13, 2024
1 parent 9bfc201 commit db44e25
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions pkgs/applications/editors/vim/plugins/vim-utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -488,34 +488,37 @@ rec {

toVimPlugin =
drv:
drv.overrideAttrs (finalAttrs: oldAttrs: {
name = "vimplugin-${oldAttrs.name}";
# dont move the "doc" folder since vim expects it
forceShare = [
"man"
"info"
];

nativeBuildInputs =
oldAttrs.nativeBuildInputs or [ ]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
vimGenDocHook
drv.overrideAttrs (
finalAttrs: oldAttrs: {
name = "vimplugin-${oldAttrs.name}";
# dont move the "doc" folder since vim expects it
forceShare = [
"man"
"info"
];

doCheck = oldAttrs.doCheck or true;
nativeBuildInputs =
oldAttrs.nativeBuildInputs or [ ]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
vimGenDocHook
];

nativeCheckInputs =
oldAttrs.nativeCheckInputs or [ ]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ([
vimCommandCheckHook ]
++ lib.optional (finalAttrs.finalPackage ? nvimRequireCheck) neovimRequireCheckHook
)
;
doCheck = oldAttrs.doCheck or true;

passthru = (oldAttrs.passthru or { }) // {
vimPlugin = true;
};
});
nativeCheckInputs =
oldAttrs.nativeCheckInputs or [ ]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) (
[
vimCommandCheckHook
]
++ lib.optional (finalAttrs.finalPackage ? nvimRequireCheck) neovimRequireCheckHook
);

passthru = (oldAttrs.passthru or { }) // {
vimPlugin = true;
};
}
);
}
// lib.optionalAttrs config.allowAliases {
vimWithRC = throw "vimWithRC was removed, please use vim.customize instead";
Expand Down

0 comments on commit db44e25

Please sign in to comment.