mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/ledger: add option to install the ledger binary
This commit is contained in:
parent
ef82c0d6d9
commit
4d8285ac0c
1 changed files with 15 additions and 0 deletions
|
@ -34,6 +34,21 @@ with helpers.vim-plugin;
|
|||
)
|
||||
];
|
||||
|
||||
extraOptions = {
|
||||
ledgerPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = pkgs.ledger;
|
||||
description = ''
|
||||
The package to install for `ledger`.
|
||||
Set to `null` for disabling installation.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = optional (cfg.ledgerPackage != null) cfg.ledgerPackage;
|
||||
};
|
||||
|
||||
settingsOptions = {
|
||||
bin = helpers.mkNullOrStr ''
|
||||
Path to the `ledger` executable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue