pkgs: (pkgs.matrix-synapse.override { extras = [ "redis" "cache-memory" "postgres" "url-preview" "user-search" ]; matrix-synapse-unwrapped = pkgs.matrix-synapse-unwrapped.overridePythonAttrs (old: { patches = (old.patches or []) ++ [ ((pkgs.fetchurl { url = "https://patch-diff.githubusercontent.com/raw/matrix-org/synapse/pull/16504.patch"; hash = "sha256-hjUOmsl06gVPewRdg/DyO9E5bSkIRNBAFJIrWqUsT6Y="; }) // { requiredSystemFeatures = [ "local" ]; }) ]; }); })