plugins/ledger: add option to install the ledger binary

This commit is contained in:
Gaetan Lepage 2024-03-02 22:48:56 +01:00 committed by Gaétan Lepage
parent ef82c0d6d9
commit 4d8285ac0c

View file

@ -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.