summaryrefslogtreecommitdiff
path: root/pkgs/mautrix-discord/default.nix
blob: b25683e6fee605599c38f0e59615030f23222708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildGoModule, fetchFromGitLab, olm }:

buildGoModule rec {
  pname = "mautrix-discord";
  version = "unstable-2022-04-22";

  src = fetchFromGitLab {
    owner = "beeper";
    repo = "discord";
    rev = "145c0cc2cbcfeabd13dfbfb8f9b844d2d37a6dcc";
    sha256 = "sha256-FvPYUj6x47JSgBSVvKRrsbOA1WjnEgvYbj+bxpXMyuc=";
  };

  buildInputs = [ olm ];

  vendorSha256 = "sha256-Zd4W6V/7zzVWPg8t+1upS5rjw03HHbmL8rw5AKwITlY=";

  doCheck = false;

  proxyVendor = true;

  meta = with lib; {
    mainProgram = "discord";
    homepage = "https://gitlab.com/beeper/discord";
    description = "Matrix <-> Discord hybrid puppeting/relaybot bridge";
    license = licenses.agpl3;
    maintainers = with maintainers; [ pacman99 ];
  };
}