From 05e5b69ac8d423c1501bcc96126e533bf5d96a89 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 20 Aug 2021 11:17:04 +0200 Subject: [PATCH] mautrix-telegram: override mautrix to version 0.10.4 This is needed since 0.10.1 of mautrix-telegram, but it'd be a breaking change of mautrix, which can be used for any kind of matrix client, so I don't really want to break it. --- pkgs/servers/mautrix-telegram/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/mautrix-telegram/default.nix b/pkgs/servers/mautrix-telegram/default.nix index c236bdba61e..eba429e8cce 100644 --- a/pkgs/servers/mautrix-telegram/default.nix +++ b/pkgs/servers/mautrix-telegram/default.nix @@ -2,16 +2,26 @@ , withE2BE ? true }: -with python3.pkgs; - let + python = python3.override { + packageOverrides = self: super: { + mautrix = super.mautrix.overridePythonAttrs (oldAttrs: rec { + version = "0.10.4"; + src = oldAttrs.src.override { + inherit version; + sha256 = "ffbc4e29eb56089539b408f8e4c12a5d5a5d11d7fe7d40f8c6279784c618b869"; + }; + }); + }; + }; + # officially supported database drivers - dbDrivers = [ + dbDrivers = with python.pkgs; [ psycopg2 # sqlite driver is already shipped with python by default ]; -in buildPythonPackage rec { +in with python.pkgs; buildPythonPackage rec { pname = "mautrix-telegram"; version = "0.10.1"; disabled = python.pythonOlder "3.7";