{ lib , buildGoModule , fetchFromGitHub , olm , nix-update-script , testers , mautrix-discord }: buildGoModule rec { pname = "mautrix-discord"; version = "0.6.3"; src = fetchFromGitHub { owner = "mautrix"; repo = "discord"; rev = "v${version}"; hash = "sha256-hksnD1RWK83JjVIZsKeK8bQobNmzIbm9drgU0VjiqLs="; }; vendorHash = "sha256-+dmlJZPc2Tw9G64MeLPY5Rgml3UKEqAtgGI1ImRvMBU="; ldflags = [ "-s" "-w" ]; buildInputs = [ olm ]; doCheck = false; passthru = { updateScript = nix-update-script { }; tests.version = testers.testVersion { package = mautrix-discord; }; }; meta = with lib; { description = "A Matrix-Discord puppeting bridge"; homepage = "https://github.com/mautrix/discord"; changelog = "https://github.com/mautrix/discord/blob/${src.rev}/CHANGELOG.md"; license = licenses.agpl3Only; maintainers = with maintainers; [ MoritzBoehme ]; }; }