2023-09-21 18:33:12 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-sliding-sync";
|
2023-10-16 03:49:32 +02:00
|
|
|
version = "0.99.11";
|
2023-09-21 18:33:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "sliding-sync";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-16 03:49:32 +02:00
|
|
|
hash = "sha256-Wd/nnJhKg+BDyOIz42zEScjzQRrpEq6YG9/9Tk24hgg=";
|
2023-09-21 18:33:12 +02:00
|
|
|
};
|
|
|
|
|
2023-10-16 03:49:32 +02:00
|
|
|
vendorHash = "sha256-0QSyYhOht1j1tWNxHQh+NUZA/W1xy7ANu+29H/gusOE=";
|
2023-09-21 18:33:12 +02:00
|
|
|
|
|
|
|
subPackages = [ "cmd/syncv3" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.GitCommit=${src.rev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# requires a running matrix-synapse
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A sliding sync implementation of MSC3575 for matrix";
|
|
|
|
homepage = "https://github.com/matrix-org/sliding-sync";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ emilylange ];
|
|
|
|
mainProgram = "syncv3";
|
|
|
|
};
|
|
|
|
}
|