feat(3p/teleirc): add derivation for irc<>tg bridge

We need this for the Volga Sprint channel.

Change-Id: I77ff3172e3a8eca55de51e45cb824ec0f40d4065
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11718
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Vincent Ambo 2024-05-26 20:28:44 +03:00 committed by tazjin
parent 3ebcf30b64
commit 73092db85a

23
third_party/teleirc/default.nix vendored Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, lib, ... }:
pkgs.buildGoModule rec {
name = "teleirc";
version = "2.3.0-4";
src = pkgs.fetchFromGitHub {
owner = "RITlug";
repo = "teleirc";
rev = "v2.3.0-4-g9ad5f9a";
sha256 = "08h9ady2vz6nfcii2ac41b2lfqzjfiwv8apbcx4fybaymwy5vn7g";
};
vendorHash = "sha256:06f2wyxbphj73wknpp6dsn7rb4yhvdl6x0gj729cns7r4bsviscs";
ldflags = [ "-s" "-w" "-X" "main.version=${version}" ];
postInstall = "mv $out/bin/cmd $out/bin/teleirc";
meta = with lib; {
description = "IRC/Telegram bridge";
homepage = "https://docs.teleirc.com/en/latest/";
license = licenses.gpl3;
};
}