diff options
-rw-r--r-- | modules/workstation/weechat/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/workstation/weechat/default.nix b/modules/workstation/weechat/default.nix index c6698125d6ea..fb61b8c69ef2 100644 --- a/modules/workstation/weechat/default.nix +++ b/modules/workstation/weechat/default.nix @@ -3,7 +3,15 @@ with lib; let - scripts = with pkgs.weechatScripts; + weechatScripts = pkgs.weechatScripts.override { + python3Packages = pkgs.python39Packages; + }; + + weechatWrapper = with pkgs; wrapWeechat (weechat-unwrapped.override { + python3Packages = python39Packages; + }); + + scripts = with weechatScripts; [ colorize_nicks weechat-go weechat-matrix zncplayback ]; networks = [ @@ -111,7 +119,7 @@ let # to WeeChat before the /script loads, so scripts wouldn't be # available and we wouldn't be able to do stuff like set up Matrix. cfg = pkgs.runCommand "weechat-config" {} '' - ${pkgs.weechat.override { + ${weechatWrapper { configure = { ... }: { inherit scripts; init = concatStringsSep ";" (commands ++ [ "/save" "/exit" ]); @@ -129,7 +137,7 @@ in ''; environment.systemPackages = with pkgs; [ - (weechat.override { + (weechatWrapper { configure = { ...}: { inherit scripts; }; |