weechat = pkgs.weechat.override {
    configure = { availablePlugins, ... }: {
      plugins = builtins.attrValues (availablePlugins // {
        python = availablePlugins.python.withPackages (_: [
          pkgs.weechat-matrix.weechat-matrix
        ]);
      });

      scripts = with pkgs; [
        weechat-matrix.weechat-matrix
      ];
    };
  };