From 11fc0df709d93ed64caf16b980c79428423b7c03 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 29 Jul 2022 00:40:09 +0200 Subject: heisenbridge: override to mautrix 0.16.x --- pkgs/servers/heisenbridge/default.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/heisenbridge/default.nix b/pkgs/servers/heisenbridge/default.nix index 82599cdcbaa..576df924ad9 100644 --- a/pkgs/servers/heisenbridge/default.nix +++ b/pkgs/servers/heisenbridge/default.nix @@ -1,5 +1,20 @@ { lib, fetchFromGitHub, fetchpatch, python3 }: -python3.pkgs.buildPythonApplication rec { + +let + python = python3.override { + packageOverrides = self: super: { + mautrix = super.mautrix.overridePythonAttrs (oldAttrs: rec { + version = "0.16.3"; + src = oldAttrs.src.override { + inherit (oldAttrs) pname; + inherit version; + sha256 = "sha256-OpHLh5pCzGooQ5yxAa0+85m/szAafV+l+OfipQcfLtU="; + }; + }); + }; + }; + +in python.pkgs.buildPythonApplication rec { pname = "heisenbridge"; version = "1.13.1"; @@ -14,7 +29,7 @@ python3.pkgs.buildPythonApplication rec { echo "${version}" > heisenbridge/version.txt ''; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ aiohttp irc mautrix @@ -22,7 +37,7 @@ python3.pkgs.buildPythonApplication rec { pyyaml ]; - checkInputs = with python3.pkgs; [ + checkInputs = with python.pkgs; [ pytestCheckHook ]; -- cgit 1.4.1