plugins/direnv: use direnvPackage

This commit is contained in:
Austin Horstman 2024-09-14 10:29:52 -05:00
parent 6bf63e8871
commit ff3fee3ae5
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View file

@ -10,7 +10,6 @@ helpers.vim-plugin.mkVimPlugin {
originalName = "direnv.vim"; originalName = "direnv.vim";
package = "direnv-vim"; package = "direnv-vim";
globalPrefix = "direnv_"; globalPrefix = "direnv_";
extraPackages = [ pkgs.direnv ];
maintainers = [ helpers.maintainers.alisonjenkins ]; maintainers = [ helpers.maintainers.alisonjenkins ];
@ -36,4 +35,14 @@ helpers.vim-plugin.mkVimPlugin {
Stop echoing output from Direnv command. Stop echoing output from Direnv command.
''; '';
}; };
extraOptions = {
direnvPackage = lib.mkPackageOption pkgs "direnv" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.direnvPackage ];
};
} }

View file

@ -14,4 +14,11 @@
}; };
}; };
}; };
no-packages = {
plugins.direnv = {
enable = true;
direnvPackage = null;
};
};
} }