Bump synapse due to CVE

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-04-24 17:59:32 +02:00
parent f2d9ffa664
commit 3408bd1d51
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -1,9 +1,41 @@
pkgs: (pkgs.matrix-synapse.override {
extras = [
"redis"
"cache-memory"
"postgres"
"url-preview"
"user-search"
];
})
pkgs: let
inherit
(pkgs)
fetchFromGitHub
rustPlatform
lib
;
inherit
(lib.strings)
versionOlder
;
inherit
(lib)
fix
;
in
pkgs.matrix-synapse.override {
extras = [
"redis"
"cache-memory"
"postgres"
"url-preview"
"user-search"
];
matrix-synapse-unwrapped = fix (self:
pkgs.matrix-synapse-unwrapped.overridePythonAttrs (old: {
version = assert versionOlder old.version "1.105.1"; "1.105.1";
src = fetchFromGitHub {
owner = "element-hq";
repo = "synapse";
rev = "v${self.version}";
hash = "sha256-sul9wz9NXz87ZIbvSHWYQabTW/PlwAJJ2keaO0NbHHU=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (self) src;
name = "${self.pname}-${self.version}";
hash = "sha256-Cp1Bnf96invtmYayGfBVGwxW2jk/nRVCzueubd9HIG4=";
};
}));
}