Skip to content

Commit

Permalink
plugins/ledger: add option to install the ledger binary
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Mar 3, 2024
1 parent ef82c0d commit 4d8285a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugins/languages/ledger.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4d8285a

Please sign in to comment.