diff options
author | makefu <github@syntax-fehler.de> | 2020-11-16 21:37:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-11-16 21:37:51 +0100 |
commit | a9a49a77e2772afab68f3cf1c2d508547797f928 (patch) | |
tree | e9f569d7906f1bb431a5a00a877c0ac6c2e1ba31 | |
parent | 46cc7f47fa992ff9c323fc813b34d793950e6036 (diff) |
ma pkgs.kalauerbot: use patched matrix-client
-rw-r--r-- | 5pkgs/kalauerbot/badsync.patch | 14 | ||||
-rw-r--r-- | 5pkgs/kalauerbot/default.nix | 7 |
2 files changed, 20 insertions, 1 deletions
diff --git a/5pkgs/kalauerbot/badsync.patch b/5pkgs/kalauerbot/badsync.patch new file mode 100644 index 000000000..842129b94 --- /dev/null +++ b/5pkgs/kalauerbot/badsync.patch @@ -0,0 +1,14 @@ +diff --git a/matrix_client/client.py b/matrix_client/client.py +index af0e08f..f848c4f 100644 +--- a/matrix_client/client.py ++++ b/matrix_client/client.py +@@ -471,7 +471,7 @@ class MatrixClient(object): + self._sync(timeout_ms) + + def listen_forever(self, timeout_ms=30000, exception_handler=None, +- bad_sync_timeout=5): ++ bad_sync_timeout=61): + """ Keep listening for events forever. + + Args: + diff --git a/5pkgs/kalauerbot/default.nix b/5pkgs/kalauerbot/default.nix index 2cecbc3f2..ee90fdeec 100644 --- a/5pkgs/kalauerbot/default.nix +++ b/5pkgs/kalauerbot/default.nix @@ -8,7 +8,12 @@ rev = "08d98aa"; sha256 = "017hh61smgq4zsxd10brgwmykwgwabgllxjs31xayvs1hnqmkv2v"; }; propagatedBuildInputs = with python3.pkgs;[ - (callPackage ./python-matrixbot.nix {}) + (callPackage ./python-matrixbot.nix { + matrix-client = (stdenv.lib.overrideDerivation matrix-client (self: { + patches = [ ./badsync.patch ]; + })); + }) + (stdenv.lib.overrideDerivation googletrans (self: { patches = [ ./translate.patch ]; })) |