fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
837 B
Nix
37 lines
837 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "matrix-sliding-sync";
|
|
version = "0.99.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "sliding-sync";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zqqCgmzea25H1wcvgIb4hIV3maReL9tmNxvo9JsSlZk=";
|
|
};
|
|
|
|
vendorHash = "sha256-THjvc0TepIBFOTte7t63Dmadf3HMuZ9m0YzQMI5e5Pw=";
|
|
|
|
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 yayayayaka ];
|
|
mainProgram = "syncv3";
|
|
};
|
|
}
|