From c96b46f44b81b897d18e5185125ce23fbe1af87d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 29 Aug 2024 14:56:09 -0500 Subject: [PATCH] plugins/fugitive: use gitPackage --- plugins/git/fugitive.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/git/fugitive.nix b/plugins/git/fugitive.nix index a68ce349..a410a416 100644 --- a/plugins/git/fugitive.nix +++ b/plugins/git/fugitive.nix @@ -9,9 +9,18 @@ helpers.vim-plugin.mkVimPlugin config { name = "fugitive"; originalName = "vim-fugitive"; defaultPackage = pkgs.vimPlugins.vim-fugitive; - extraPackages = [ pkgs.git ]; maintainers = [ lib.maintainers.GaetanLepage ]; # In typical tpope fashion, this plugin has no config options + extraOptions = { + gitPackage = helpers.mkPackageOption { + name = "git"; + default = pkgs.git; + }; + }; + + extraConfig = cfg: { + extraPackages = [ cfg.gitPackage ]; + }; }