From c1a5d7d62ac8c79e00a82d5d09f04a9b9aae2ff4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 19 Dec 2019 14:48:22 +0000 Subject: feat(emacs): Add telega.el support 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. --- third_party/default.nix | 1 + third_party/telega/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 third_party/telega/default.nix (limited to 'third_party') diff --git a/third_party/default.nix b/third_party/default.nix index 1837cf26ca..890b177762 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -69,6 +69,7 @@ let stdenv stern symlinkJoin + tdlib terraform_0_12 thttpd tree 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/ + ''; +} -- cgit 1.4.1