kakoune: allow custom package (#3434)

This commit is contained in:
Loric Brevet 2022-11-27 01:49:15 +01:00 committed by GitHub
parent cc58d31953
commit e999dfe7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -489,9 +489,8 @@ let
};
};
kakouneWithPlugins = pkgs.wrapKakoune pkgs.kakoune-unwrapped {
configure = { plugins = cfg.plugins; };
};
kakouneWithPlugins =
pkgs.wrapKakoune cfg.package { configure = { plugins = cfg.plugins; }; };
configFile = let
wrapOptions = with cfg.config.wrapLines;
@ -624,6 +623,8 @@ in {
programs.kakoune = {
enable = mkEnableOption "the kakoune text editor";
package = mkPackageOption pkgs "kakoune-unwrapped" { };
config = mkOption {
type = types.nullOr configModule;
default = { };