about summary refs log tree commit diff
path: root/third_party/teleirc/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2024-05-26T17·28+0300
committertazjin <tazjin@tvl.su>2024-05-26T19·36+0000
commit73092db85af8367b919243c1111b5c5f45694365 (patch)
tree68e74bb51e81512dd6e2a95fa64a2efa86df37ab /third_party/teleirc/default.nix
parent3ebcf30b64038198f82db4ffd109f2a0af3e0cf7 (diff)
feat(3p/teleirc): add derivation for irc<>tg bridge r/8170
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>
Diffstat (limited to 'third_party/teleirc/default.nix')
-rw-r--r--third_party/teleirc/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/teleirc/default.nix b/third_party/teleirc/default.nix
new file mode 100644
index 000000000000..c6bf73650e08
--- /dev/null
+++ b/third_party/teleirc/default.nix
@@ -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;
+  };
+}