9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
37 lines
831 B
Nix
37 lines
831 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "matrix-sliding-sync";
|
|
version = "0.99.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "sliding-sync";
|
|
rev = "v${version}";
|
|
hash = "sha256-s7hQ4qCOhkNS8Mc2HZjFqedtj0KqXMAxVMZRIjPyvOA=";
|
|
};
|
|
|
|
vendorHash = "sha256-447P2TbBUEHmHubHiiZCrFVCj2/tmEuYFzLo27UyCk4=";
|
|
|
|
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; [ SuperSandro2000 emilylange ];
|
|
mainProgram = "syncv3";
|
|
};
|
|
}
|