weechatScripts.weechat-matrix: Fix compatibility with matrix-nio 0.21

weechat-matrix script crashes at load time due to changes in matrix-nio.
Patching 'matrix/config.py' from this commit fixes it:
https://github.com/poljar/weechat-matrix/commit/feae9fda26ea9de98da9cd6733980a203115537e

authored by Rob and committed by Alyssa Ross a37d70e9 4b1fe40c

+13 -4
+13 -4
pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix
··· 34 hash = "sha256-o4kgneszVLENG167nWnk2FxM+PsMzi+PSyMUMIktZcc="; 35 }; 36 37 - patches = fetchpatch { 38 - url = "https://patch-diff.githubusercontent.com/raw/poljar/weechat-matrix/pull/309.patch"; 39 - sha256 = "sha256-Grdht+TOFvCYRpL7uhPivqL7YzLoNVF3iQNHgbv1Te0="; 40 - }; 41 42 propagatedBuildInputs = [ 43 pyopenssl
··· 34 hash = "sha256-o4kgneszVLENG167nWnk2FxM+PsMzi+PSyMUMIktZcc="; 35 }; 36 37 + patches = [ 38 + # server: remove set_npn_protocols() 39 + (fetchpatch { 40 + url = "https://patch-diff.githubusercontent.com/raw/poljar/weechat-matrix/pull/309.patch"; 41 + hash = "sha256-Grdht+TOFvCYRpL7uhPivqL7YzLoNVF3iQNHgbv1Te0="; 42 + }) 43 + # Fix compatibility with matrix-nio 0.21 44 + (fetchpatch { 45 + url = "https://github.com/poljar/weechat-matrix/commit/feae9fda26ea9de98da9cd6733980a203115537e.patch"; 46 + hash = "sha256-MAfxJ85dqz5PNwp/GJdHA2VvXVdWh+Ayx5g0oHiw9rs="; 47 + includes = ["matrix/config.py"]; 48 + }) 49 + ]; 50 51 propagatedBuildInputs = [ 52 pyopenssl