2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-sliding-sync";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.99.10";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "sliding-sync";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-TjChelGVicA59q6iIIDTI7nSj8KtjpA4bfZqsfoiOQg=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-E3nCcw6eTKKcL55ls6n5pYlRFffsefsN0G1Hwd49uh8=";
|
2023-07-15 17:15:38 +00: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 ];
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ emilylange yayayayaka ];
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "syncv3";
|
|
|
|
};
|
|
|
|
}
|