modules/dependencies: add yq

This commit is contained in:
Gaetan Lepage 2025-04-07 23:13:42 +02:00 committed by nix-infra-bot
parent 1144fa8698
commit 1e3fe17dd7
2 changed files with 13 additions and 9 deletions

View file

@ -46,6 +46,7 @@ let
websocat.default = "websocat";
which.default = "which";
yazi.default = "yazi";
yq.default = "yq";
zk.default = "zk";
};

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "papis";
packPathName = "papis.nvim";
@ -7,15 +7,18 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ lib.maintainers.GaetanLepage ];
# papis.nvim is an nvim-cmp source too
imports = [ { cmpSourcePlugins.papis = "papis"; } ];
imports = [
{ cmpSourcePlugins.papis = "papis"; }
extraOptions = {
yqPackage = lib.mkPackageOption pkgs "yq" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.yqPackage ];
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "yq";
packageName = "yq";
})
];
extraConfig = {
dependencies.yq.enable = lib.mkDefault true;
};
settingsOptions = import ./settings-options.nix lib;