From 2afc9befbfd21a8e9be94e49f0d5fef89ded88fd Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 26 Aug 2021 22:55:47 +0200 Subject: [PATCH] matrix-synapse: bump to nixos 21.05, new structure This patches an import path for our new structure, and adjusts the build inputs for our hacked version of matrix-synapse with a newer version of twisted (for tls 1.3 support), which is apparently still necessary even in nixos 21.05. Seems to build fine (have not waited for all tests in the matrix packag; these take ages) --- pkgs/matrix/default.nix | 11 +++++------ services/matrix-synapse.nix | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/matrix/default.nix b/pkgs/matrix/default.nix index b58a98c..b132c5d 100644 --- a/pkgs/matrix/default.nix +++ b/pkgs/matrix/default.nix @@ -15,12 +15,13 @@ self: super: matrix-synapse = super.matrix-synapse.overrideAttrs (old: { propagatedBuildInputs = with self.python3Packages; [ - setuptools + authlib bcrypt bleach canonicaljson daemonize frozendict + ijson jinja2 jsonschema lxml @@ -32,22 +33,20 @@ self: super: psutil psycopg2 pyasn1 + pyjwt pymacaroons pynacl pyopenssl pysaml2 pyyaml requests + setuptools signedjson sortedcontainers treq twisted - unpaddedbase64 typing-extensions - authlib - pyjwt - systemd - hiredis + unpaddedbase64 ]; python = self.python3; }); diff --git a/services/matrix-synapse.nix b/services/matrix-synapse.nix index 2084821..2d34903 100644 --- a/services/matrix-synapse.nix +++ b/services/matrix-synapse.nix @@ -3,7 +3,7 @@ { networking.firewall.allowedTCPPorts = [ 80 443 ]; - nixpkgs.overlays = [ (import ./../../../pkgs/matrix) ]; + nixpkgs.overlays = [ (import ./../pkgs/matrix) ]; services.postgresql.enable = true;