2022-05-14 07:04:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub
|
|
|
|
, nixosTests, postgresql, postgresqlTestHook }:
|
2021-01-16 18:06:05 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-dendrite";
|
2023-03-18 14:12:39 +00:00
|
|
|
version = "0.12.0";
|
2021-01-16 18:06:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "dendrite";
|
|
|
|
rev = "v${version}";
|
2023-03-18 14:12:39 +00:00
|
|
|
hash = "sha256-syOLrw4ig8rmFDkxJ9KSAuzUVO8UokekV17mT1bJNNM=";
|
2021-01-16 18:06:05 +00:00
|
|
|
};
|
|
|
|
|
2023-03-18 14:12:39 +00:00
|
|
|
vendorHash = "sha256-nvGhKCUiyHSD0VpE4OtT9YQSHxv0d7iwOChCJl2D3zk=";
|
2022-08-19 21:51:26 +00:00
|
|
|
|
2022-10-11 07:33:22 +00:00
|
|
|
subPackages = [
|
2023-03-18 14:12:39 +00:00
|
|
|
# The server
|
|
|
|
"cmd/dendrite"
|
2022-10-11 07:33:22 +00:00
|
|
|
# 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"
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-01 07:45:12 +00:00
|
|
|
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
|
|
|
|
'';
|
2021-01-16 18:06:05 +00:00
|
|
|
|
2021-05-14 11:11:22 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) dendrite;
|
|
|
|
};
|
|
|
|
|
2021-01-16 18:06:05 +00:00
|
|
|
meta = with lib; {
|
2022-05-14 07:04:03 +00:00
|
|
|
homepage = "https://matrix-org.github.io/dendrite";
|
|
|
|
description = "A second-generation Matrix homeserver written in Go";
|
2022-10-14 16:06:27 +00:00
|
|
|
changelog = "https://github.com/matrix-org/dendrite/releases/tag/v${version}";
|
2021-01-16 18:06:05 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.matrix.members;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|