From e999dfe7cba2e1fd59ab135e7496545bd4f82b76 Mon Sep 17 00:00:00 2001 From: Loric Brevet Date: Sun, 27 Nov 2022 01:49:15 +0100 Subject: [PATCH] kakoune: allow custom package (#3434) --- modules/programs/kakoune.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/programs/kakoune.nix b/modules/programs/kakoune.nix index 495ef8e1..042b6ee3 100644 --- a/modules/programs/kakoune.nix +++ b/modules/programs/kakoune.nix @@ -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 = { };