modules/dependencies: init + add curl

This commit is contained in:
Gaetan Lepage 2025-04-06 17:17:51 +02:00 committed by nix-infra-bot
parent 33c3f98fdc
commit cfd4b61262
11 changed files with 97 additions and 28 deletions

View file

@ -40,6 +40,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
Refer to the documentation for more information.
''
)
# TODO: added 2025-04-06: remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "rest";
packageName = "curl";
})
]
++
map
@ -207,10 +213,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
extraOptions = {
curlPackage = lib.mkPackageOption pkgs "curl" {
nullable = true;
};
enableHttpFiletypeAssociation = lib.mkOption {
type = types.bool;
default = true;
@ -300,7 +302,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
globals.rest_nvim = cfg.settings;
extraPackages = [ cfg.curlPackage ];
dependencies.curl.enable = lib.mkDefault true;
filetype = lib.mkIf cfg.enableHttpFiletypeAssociation {
extension.http = "http";