From ff782189f05f48f28a8292b0e3c9bb579ebe93e5 Mon Sep 17 00:00:00 2001 From: Parthiv Seetharaman Date: Sat, 23 Apr 2022 23:31:09 -0700 Subject: pkgs: add mautrix-discord from beeper --- pkgs/mautrix-discord/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/mautrix-discord/default.nix (limited to 'pkgs/mautrix-discord') diff --git a/pkgs/mautrix-discord/default.nix b/pkgs/mautrix-discord/default.nix new file mode 100644 index 0000000..33856ac --- /dev/null +++ b/pkgs/mautrix-discord/default.nix @@ -0,0 +1,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-WJJHAppvoeG4t7cY6fbuT8HKjYwEmg9PSAqyMcsiKh0="; + + doCheck = false; + + runVend = 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 ]; + }; +} -- cgit v1.2.3