2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-sliding-sync";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.99.15";
|
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}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-9JYR9fBxtv+3E+l+l26jryqEstnOUm657VsKsDRzD9g=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-THjvc0TepIBFOTte7t63Dmadf3HMuZ9m0YzQMI5e5Pw=";
|
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";
|
|
|
|
};
|
|
|
|
}
|