about summary refs log tree commit diff
path: root/third_party/telega
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-19T14·48+0000
committerVincent Ambo <tazjin@google.com>2019-12-19T14·48+0000
commitc1a5d7d62ac8c79e00a82d5d09f04a9b9aae2ff4 (patch)
treeef2b8eea4ee990ab0aa36d13864e38cd359b0d12 /third_party/telega
parent166aff23bcffc2afa5ca5ac475f5866b759be443 (diff)
feat(emacs): Add telega.el support r/199
Packages the telega-server binary and adds the required mode into
Emacs.

Unread message count is displayed in the modeline, which is neat.

Probably need to figure out some key bindings for this.
Diffstat (limited to 'third_party/telega')
-rw-r--r--third_party/telega/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/telega/default.nix b/third_party/telega/default.nix
new file mode 100644
index 0000000000..4fdf0667ff
--- /dev/null
+++ b/third_party/telega/default.nix
@@ -0,0 +1,22 @@
+# Telega is an Emacs client for Telegram. It requires a native server
+# component to run correctly, which is built by this derivation.
+{ pkgs, ... }:
+
+with pkgs.third_party;
+
+stdenv.mkDerivation {
+  name = "telega";
+  buildInputs = [ tdlib ];
+
+  src = fetchFromGitHub {
+    owner = "zevlg";
+    repo = "telega.el";
+    rev = "d532b16067cf24728a2aa03a7aeaebe2ceac7df4";
+    sha256 = "1s2sd07sin9sy833wqprhbfk5j1d1s4azzvj6d8k68sxlgz8996m";
+  } + "/server";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mv telega-server $out/bin/
+  '';
+}