about summary refs log tree commit diff
path: root/third_party/teleirc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/teleirc')
-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;
+  };
+}