
Dendrite 0.15.0 is a security release supporting [room version 12](https://matrix.org/blog/2025/08/security-release/). It also added support for [MSC4163](https://github.com/matrix-org/matrix-spec-proposals/pull/4163) and [MSC3967](https://github.com/matrix-org/matrix-spec-proposals/pull/3967). Dendrite 0.15.1 and 2 are a bug fix releases on top of that. Full details can be found on dendrite's [changelog](https://github.com/element-hq/dendrite/blob/main/CHANGES.md).
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
nixosTests,
|
|
postgresql,
|
|
postgresqlTestHook,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "matrix-dendrite";
|
|
version = "0.15.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "element-hq";
|
|
repo = "dendrite";
|
|
rev = "v${version}";
|
|
hash = "sha256-VxQ5fuGzkEL371TmnDQ0wNqqmfzupmsTX/v+eFthj8E=";
|
|
};
|
|
|
|
vendorHash = "sha256-QUztOoOesECAhwh4whzvrc43rJxjtPaEICUHno2DId0=";
|
|
|
|
subPackages = [
|
|
# The server
|
|
"cmd/dendrite"
|
|
# admin tools
|
|
"cmd/create-account"
|
|
"cmd/generate-config"
|
|
"cmd/generate-keys"
|
|
"cmd/resolve-state"
|
|
## curl, but for federation requests, only useful for developers
|
|
# "cmd/furl"
|
|
## an internal tool for upgrading ci tests, only relevant for developers
|
|
# "cmd/dendrite-upgrade-tests"
|
|
## tech demos
|
|
# "cmd/dendrite-demo-pinecone"
|
|
# "cmd/dendrite-demo-yggdrasil"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
postgresqlTestHook
|
|
postgresql
|
|
];
|
|
|
|
postgresqlTestUserOptions = "LOGIN SUPERUSER";
|
|
preCheck = ''
|
|
export PGUSER=$(whoami)
|
|
# temporarily disable this failing test
|
|
# it passes in upstream CI and requires further investigation
|
|
rm roomserver/internal/input/input_test.go
|
|
'';
|
|
|
|
# PostgreSQL's request for a shared memory segment exceeded your kernel's SHMALL parameter
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) dendrite;
|
|
};
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"v(.+)"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://element-hq.github.io/dendrite";
|
|
description = "Second-generation Matrix homeserver written in Go";
|
|
changelog = "https://github.com/element-hq/dendrite/releases/tag/v${version}";
|
|
license = lib.licenses.agpl3Plus;
|
|
teams = [ lib.teams.matrix ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|