nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ma / mautrix-discord / package.nix
blobd0b469debd1beda416cf90f84c973d0734b9cd0a
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   olm,
6   nix-update-script,
7   testers,
8   mautrix-discord,
9 }:
11 buildGoModule rec {
12   pname = "mautrix-discord";
13   version = "0.7.0";
15   src = fetchFromGitHub {
16     owner = "mautrix";
17     repo = "discord";
18     rev = "v${version}";
19     hash = "sha256-N6CepP+P63TIKKi6FQLJEuV5hFtiv1CcBM+1Y/QPZrI=";
20   };
22   vendorHash = "sha256-QdH98NA5Y9YKkvL8Gq8ChgvHFOyOBFXDDulxwql6v5c=";
24   ldflags = [
25     "-s"
26     "-w"
27   ];
29   buildInputs = [ olm ];
31   doCheck = false;
33   passthru = {
34     updateScript = nix-update-script { };
35     tests.version = testers.testVersion {
36       package = mautrix-discord;
37     };
38   };
40   meta = with lib; {
41     description = "Matrix-Discord puppeting bridge";
42     homepage = "https://github.com/mautrix/discord";
43     changelog = "https://github.com/mautrix/discord/blob/${src.rev}/CHANGELOG.md";
44     license = licenses.agpl3Only;
45     maintainers = with maintainers; [ MoritzBoehme ];
46     mainProgram = "mautrix-discord";
47   };