nixpkgs/pkgs/servers/dendrite/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-14 09:04:03 +02:00
{ lib, buildGoModule, fetchFromGitHub
, nixosTests, postgresql, postgresqlTestHook }:
2021-01-16 19:06:05 +01:00
buildGoModule rec {
pname = "matrix-dendrite";
2022-09-12 15:11:46 +02:00
version = "0.9.8";
2021-01-16 19:06:05 +01:00
src = fetchFromGitHub {
owner = "matrix-org";
repo = "dendrite";
rev = "v${version}";
2022-09-12 15:11:46 +02:00
sha256 = "sha256-BA+jI5S8pDXIWzCelUh8pWiXy98E94DJgLvqiy0r23g=";
2021-01-16 19:06:05 +01:00
};
2022-09-12 15:11:46 +02:00
vendorSha256 = "sha256-xcgnpaq0owlCD4nA4I1oD8FpsTGziUghRFy/7ZPVpKY=";
2022-05-01 09:45:12 +02:00
2022-08-19 23:51:26 +02:00
# some tests are racy, re-enable once upstream has fixed them
doCheck = false;
2022-05-01 09:45:12 +02:00
checkInputs = [
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 19:06:05 +01:00
2021-05-14 13:11:22 +02:00
passthru.tests = {
inherit (nixosTests) dendrite;
};
2021-01-16 19:06:05 +01:00
meta = with lib; {
2022-05-14 09:04:03 +02:00
homepage = "https://matrix-org.github.io/dendrite";
description = "A second-generation Matrix homeserver written in Go";
2021-01-16 19:06:05 +01:00
license = licenses.asl20;
maintainers = teams.matrix.members;
platforms = platforms.unix;
};
}