From db44e254e11a890e88b946fbf1c75023635c5313 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:50:35 +0000 Subject: [PATCH] vimUtils: update formatting --- .../editors/vim/plugins/vim-utils.nix | 51 ++++++++++--------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/vim-utils.nix b/pkgs/applications/editors/vim/plugins/vim-utils.nix index 95b6085cda105..ba8de208a227e 100644 --- a/pkgs/applications/editors/vim/plugins/vim-utils.nix +++ b/pkgs/applications/editors/vim/plugins/vim-utils.nix @@ -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";